remove reduntant new/delete implementation

The same code is provided by both libxx and libxxabi, and removed at linktime.
This commit is contained in:
xavier 2021-05-24 07:51:26 +02:00
parent 32154fbf0d
commit acaa0b8f08

View File

@ -129,6 +129,7 @@ pub fn buildLibCXX(comp: *Compilation) !void {
try cflags.append("-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS");
try cflags.append("-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS");
try cflags.append("-D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS");
try cflags.append("-D_LIBCPP_DISABLE_NEW_DELETE_DEFINITIONS");
try cflags.append("-fvisibility=hidden");
try cflags.append("-fvisibility-inlines-hidden");