diff options
author | Nikita Popov <npopov@redhat.com> | 2025-09-11 15:47:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-11 15:47:25 +0200 |
commit | e1aa2dff8a7a53fec14130e77d7da15d0ac482ca (patch) | |
tree | 43bec593ad9a3ac9f2f8541b17d8f30c631d4b37 /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | 23302a2aacb31f30a80e9ae3105d215c14ab363e (diff) | |
download | llvm-e1aa2dff8a7a53fec14130e77d7da15d0ac482ca.zip llvm-e1aa2dff8a7a53fec14130e77d7da15d0ac482ca.tar.gz llvm-e1aa2dff8a7a53fec14130e77d7da15d0ac482ca.tar.bz2 |
[flang-rt] Use -Wp to undefine macros (#156034)
If the macro was previously defined with `-Wp,-D` then a later `-U` is
*not* going to take effect, the `-Wp` flag takes precedence.
Instead use `-Wp,-U`. This works regardless of whether the original
definition was provided via `-D` or `-Wp,-D`.
Also make sure these flags only get passed to the C++ compiler -- they
are only relevant there, and flang does not support `-Wp`.
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions