Remove libcxx stub library and move operator new to mammoth.

This commit is contained in:
Drew Galbraith 2023-06-26 08:29:14 -07:00
parent a46694d0f7
commit 7989c9d616
12 changed files with 10 additions and 138 deletions

7
lib/mammoth/src/new.cpp Normal file
View file

@ -0,0 +1,7 @@
#include <stdint.h>
#include <stdlib.h>
[[nodiscard]] void* operator new(uint64_t size) { return malloc(size); }
[[nodiscard]] void* operator new[](uint64_t size) { return malloc(size); }
void operator delete(void*, uint64_t) {}