Update libcxx

This commit is contained in:
topjohnwu
2026-08-03 19:22:52 -07:00
committed by John Wu
parent fd0cb66b6b
commit 0b0ee5611e
4 changed files with 3 additions and 13 deletions
-11
View File
@@ -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<size_t> byte_data::patch(byte_view from, byte_view to) const {
rust::Vec<size_t> v;
if (ptr == nullptr)
+1
View File
@@ -4,6 +4,7 @@
#include <unistd.h>
#include <dirent.h>
#include <fcntl.h>
#include <pthread.h>
#include <functional>
#include <rust/cxx.h>