summaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-04-25 09:03:00 +0300
committerMartin Storsjö <martin@martin.st>2022-04-25 11:22:38 +0300
commit9a7339c997a04a1d2d39693d583229ffa550034c (patch)
treebebce316256a346fae95e27e0dce5bf560c32f90 /runtimes
parent8ac447adc8822a7f4064d09293dcc73cc08b1d49 (diff)
downloadllvm-9a7339c997a04a1d2d39693d583229ffa550034c.tar.gz
[runtimes] [CMake] Rename a cmake variable missed in b3df14b6c98702ce50401fd039852787373e4676
This was missed as this check only is executed if linking doesn't work without it.
Diffstat (limited to 'runtimes')
-rw-r--r--runtimes/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt
index b23025177bac..aa3cef531211 100644
--- a/runtimes/CMakeLists.txt
+++ b/runtimes/CMakeLists.txt
@@ -100,8 +100,8 @@ if (NOT LLVM_RUNTIMES_LINKING_WORKS)
# --unwindlib=none is supported, and use that if possible.
# Don't add this if not necessary to fix linking, as it can break using
# e.g. ASAN/TSAN.
- llvm_check_compiler_linker_flag(C "--unwindlib=none" LLVM_RUNTIMES_SUPPORT_UNWINDLIB_NONE_FLAG)
- if (LLVM_RUNTIMES_SUPPORT_UNWINDLIB_NONE_FLAG)
+ llvm_check_compiler_linker_flag(C "--unwindlib=none" CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG)
+ if (CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG)
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} --unwindlib=none")
endif()
endif()