[libc++][test] Use ADDITIONAL_COMPILE_FLAGS(gcc-style-warnings) for -Wno-psabi#113608
Merged
StephanTLavavej merged 1 commit intollvm:mainfrom Oct 25, 2024
Merged
Conversation
Member
|
@llvm/pr-subscribers-libcxx Author: Stephan T. Lavavej (StephanTLavavej) ChangesMSVC doesn't understand Using Full diff: https://github.com/llvm/llvm-project/pull/113608.diff 1 Files Affected:
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>
|
ldionne
approved these changes
Oct 24, 2024
philnik777
approved these changes
Oct 24, 2024
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.