diff --git a/native/src/base/base.cpp b/native/src/base/base.cpp index 4fa1380f0..3ba52bb53 100644 --- a/native/src/base/base.cpp +++ b/native/src/base/base.cpp @@ -20,17 +20,6 @@ static_assert(BLKGETSIZE64 == 0x80081272); static_assert(BLKGETSIZE64 == 0x80041272); #endif -// Override libc++ new implementation to optimize final build size - -void* operator new(std::size_t s) { return std::malloc(s); } -void* operator new[](std::size_t s) { return std::malloc(s); } -void operator delete(void *p) { std::free(p); } -void operator delete[](void *p) { std::free(p); } -void* operator new(std::size_t s, const std::nothrow_t&) noexcept { return std::malloc(s); } -void* operator new[](std::size_t s, const std::nothrow_t&) noexcept { return std::malloc(s); } -void operator delete(void *p, const std::nothrow_t&) noexcept { std::free(p); } -void operator delete[](void *p, const std::nothrow_t&) noexcept { std::free(p); } - rust::Vec byte_data::patch(byte_view from, byte_view to) const { rust::Vec v; if (ptr == nullptr) diff --git a/native/src/base/include/base.hpp b/native/src/base/include/base.hpp index 30fe40f76..aec25a172 100644 --- a/native/src/base/include/base.hpp +++ b/native/src/base/include/base.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include diff --git a/native/src/external/libcxx b/native/src/external/libcxx index d5117df3b..130833618 160000 --- a/native/src/external/libcxx +++ b/native/src/external/libcxx @@ -1 +1 @@ -Subproject commit d5117df3ba7704aab06c3a30b97c7529c931662b +Subproject commit 130833618a50ff724a637d54fcb888d170ff9818 diff --git a/native/src/external/lsplt b/native/src/external/lsplt index cef80a97a..7d609ac3c 160000 --- a/native/src/external/lsplt +++ b/native/src/external/lsplt @@ -1 +1 @@ -Subproject commit cef80a97a73184b4def9b3e1148884365fc173fd +Subproject commit 7d609ac3c2d8faa0c830b0904024ef5c81a98e6e