Skip to content

[libc++][test] Use ADDITIONAL_COMPILE_FLAGS(gcc-style-warnings) for -Wno-psabi #113608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

StephanTLavavej
Copy link
Member

MSVC doesn't understand -Wno-psabi, which was introduced here by @ldionne in #106077.

Using ADDITIONAL_COMPILE_FLAGS(gcc-style-warnings) (implemented by #75317) avoids passing this to MSVC.

@StephanTLavavej StephanTLavavej requested a review from a team as a code owner October 24, 2024 18:41
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Oct 24, 2024
@llvmbot
Copy link
Member

llvmbot commented Oct 24, 2024

@llvm/pr-subscribers-libcxx

Author: Stephan T. Lavavej (StephanTLavavej)

Changes

MSVC doesn't understand -Wno-psabi, which was introduced here by @ldionne in #106077.

Using ADDITIONAL_COMPILE_FLAGS(gcc-style-warnings) (implemented by #75317) avoids passing this to MSVC.


Full diff: https://github.com/llvm/llvm-project/pull/113608.diff

1 Files Affected:

  • (modified) libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp (+1-1)
diff --git a/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp b/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp
index 5130758d5efd52..abb12d6a3c2473 100644
--- a/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp
+++ b/libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp
@@ -18,7 +18,7 @@
 
 // Ignore diagnostic about vector types changing the ABI on some targets, since
 // that is irrelevant for this test.
-// ADDITIONAL_COMPILE_FLAGS: -Wno-psabi
+// ADDITIONAL_COMPILE_FLAGS(gcc-style-warnings): -Wno-psabi
 
 #include <atomic>
 #include <cassert>

@StephanTLavavej StephanTLavavej merged commit f4db221 into llvm:main Oct 25, 2024
69 checks passed
@StephanTLavavej StephanTLavavej deleted the gcc-style-warnings branch October 25, 2024 18:12
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
… `-Wno-psabi` (llvm#113608)

MSVC doesn't understand `-Wno-psabi`, which was introduced here by
@ldionne in llvm#106077.

Using `ADDITIONAL_COMPILE_FLAGS(gcc-style-warnings)` (implemented by
llvm#75317) avoids passing this to MSVC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants