Add a libcxx with a new operator

This commit is contained in:
Drew Galbraith 2023-06-07 10:48:03 -07:00
parent dcc05f2741
commit 010e261dc7
8 changed files with 132 additions and 2 deletions

View file

@ -20,7 +20,7 @@ add_executable(test2
test2.cpp)
target_link_libraries(test2
libc
libcxx
mammoth_lib)
set_target_properties(test2

View file

@ -19,7 +19,7 @@ int main(uint64_t bootstrap_cap) {
Thread t2(thread_entry, b);
uint64_t size = 10;
char* buff = (char*)malloc(size);
char* buff = new char[size];
Channel c1;
c1.adopt_cap(bootstrap_cap);
check(c1.ReadStr(buff, &size));