diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-12-21 22:18:19 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-12-24 01:18:47 -0700 |
| commit | 42b4a48bc96ce22562230cd1a266f93a013c76dd (patch) | |
| tree | 16a176b415131a12b72cbac682d0398fa65d9926 /src/libcxx.zig | |
| parent | 0fd68f49e2eabb866ea1d21c4657c2a1d3c8ce53 (diff) | |
| download | zig-42b4a48bc96ce22562230cd1a266f93a013c76dd.tar.gz zig-42b4a48bc96ce22562230cd1a266f93a013c76dd.zip | |
WIP start adding support for TSAN
Diffstat (limited to 'src/libcxx.zig')
| -rw-r--r-- | src/libcxx.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcxx.zig b/src/libcxx.zig index 142d014b2f..d81562bc7e 100644 --- a/src/libcxx.zig +++ b/src/libcxx.zig @@ -139,7 +139,6 @@ pub fn buildLibCXX(comp: *Compilation) !void { try cflags.append(cxxabi_include_path); try cflags.append("-O3"); - try cflags.append("-DNDEBUG"); if (target_util.supports_fpic(target)) { try cflags.append("-fPIC"); } @@ -170,6 +169,7 @@ pub fn buildLibCXX(comp: *Compilation) !void { .want_sanitize_c = false, .want_stack_check = false, .want_valgrind = false, + .want_tsan = comp.bin_file.options.tsan, .want_pic = comp.bin_file.options.pic, .want_pie = comp.bin_file.options.pie, .emit_h = null, @@ -289,6 +289,7 @@ pub fn buildLibCXXABI(comp: *Compilation) !void { .want_sanitize_c = false, .want_stack_check = false, .want_valgrind = false, + .want_tsan = comp.bin_file.options.tsan, .want_pic = comp.bin_file.options.pic, .want_pie = comp.bin_file.options.pie, .emit_h = null, |
