zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit acaa0b8f085b386fabeb0fb92a3cb5818d1f3061 (tree)
parent 32154fbf0d14527f9f144bd5979a25d77e782ccf
Author: xavier <xavierb@gmail.com>
Date:   Mon, 24 May 2021 07:51:26 +0200

remove reduntant new/delete implementation

The same code is provided by both libxx and libxxabi, and removed at linktime.

Diffstat:
Msrc/libcxx.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/libcxx.zig b/src/libcxx.zig @@ -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");