aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-08-12 15:14:30 +0200
committerGitHub <noreply@github.com>2025-08-12 15:14:30 +0200
commit475921d2dc3d30ca9cd00feebce5328abba779a0 (patch)
tree57c72e598e347cd7ff745bb11e9a7e8304eb48e6 /llvm/lib/CodeGen/PrologEpilogInserter.cpp
parent424258947e1153052f6187e64e099e6b21a14ff1 (diff)
downloadllvm-475921d2dc3d30ca9cd00feebce5328abba779a0.zip
llvm-475921d2dc3d30ca9cd00feebce5328abba779a0.tar.gz
llvm-475921d2dc3d30ca9cd00feebce5328abba779a0.tar.bz2
[runtimes] Append `-nostd*++` flags only for Clang (#151930)
Append `-nostdlib++` and `-nostdinc++` flags to `CMAKE_REQUIRED_FLAGS` only if we are actually building with Clang. These flags are also passed to the C compiler, which is not allowed in GCC. Since CMake implicitly performs some tests using the C compiler, this can lead to incorrect check results. This should be safe, since FWIU we only need them when bootstrapping Clang. Even though we know that Clang supports these flags, we still need to explicitly check if they work, as in some scenarios adding `-nostdlib++` actually breaks the build. See PR #108357 for examples of that. Fixes #90332 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
0 files changed, 0 insertions, 0 deletions