[libcxx-commits] [libcxx] Compile MSAN/TSAN failing test with -O1 (PR #73555)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 27 11:02:23 PST 2023


================
@@ -9,6 +9,9 @@
 // REQUIRES: long_tests
 // UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
 
+// This test chokes on the sanitizers during CI runs. It appears we can address most of this by simply enabling optimizations.
+// ADDITIONAL_COMPILE_FLAGS: -O1
----------------
ldionne wrote:

We should add this flag only when we're running the sanitizers. We can do that with

```
// ADDITIONAL_COMPILE_FLAGS(msan): -O1
// ADDITIONAL_COMPILE_FLAGS(tsan): -O1
```

https://github.com/llvm/llvm-project/pull/73555


More information about the libcxx-commits mailing list