summaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2022-01-20 21:24:03 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-08-17 12:35:36 -0400
commitd784ecfea946f35c7678a86b79a7984e33a2c004 (patch)
tree5259c06893360ebd90992d1efb4a6217f4707293 /runtimes
parent6b0e2fa6f0b1045ed616e263c75ee59768e9f7f8 (diff)
downloadllvm-d784ecfea946f35c7678a86b79a7984e33a2c004.tar.gz
[compiler-rt][libunwind][runtimes] Recategorize `llvm_check_linker_flag` langs
Done according to @phosek's comments in D117537, but not done then to separate pure refactor (that) from possible behavior change (this). Wasn't working before, but I think that was due to an issue of mismatched variable names fixed in D110005. Reviewed By: phosek, #libunwind, #libc_abi Differential Revision: https://reviews.llvm.org/D117833
Diffstat (limited to 'runtimes')
-rw-r--r--runtimes/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt
index d333de9ee845..cea287f9fef9 100644
--- a/runtimes/CMakeLists.txt
+++ b/runtimes/CMakeLists.txt
@@ -132,7 +132,7 @@ endif()
# Check for -nostdlib++ first; if there's no C++ standard library yet,
# all check_cxx_compiler_flag commands will fail until we add -nostdlib++
# (or -nodefaultlibs).
-llvm_check_compiler_linker_flag(C "-nostdlib++" CXX_SUPPORTS_NOSTDLIBXX_FLAG)
+llvm_check_compiler_linker_flag(CXX "-nostdlib++" CXX_SUPPORTS_NOSTDLIBXX_FLAG)
if (CXX_SUPPORTS_NOSTDLIBXX_FLAG)
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nostdlib++")
endif()