[libcxx-commits] [libcxx] [libc++] Reduce the number of warnings when running SPEC (PR #160366)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 24 01:01:21 PDT 2025


================
@@ -28,6 +28,9 @@
 link_flags = (test_dir / 'link_flags.subs').open().read().strip()
 spec_dir = pathlib.Path((test_dir / 'spec_dir.subs').open().read().strip())
 
+# Remove -Wall, -Wextra and -Werror from the flags since we don't care about enabling all warnings inside SPEC
+compile_flags = compile_flags.replace('-Wall', '').replace('-Wextra', '').replace('-Werror', '')
----------------
philnik777 wrote:

I don't think we ever care about the warnings, do we? In that case we might as well just pass `-w`.

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


More information about the libcxx-commits mailing list