diff options
author | Martin Storsjö <martin@martin.st> | 2022-04-25 09:03:00 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-04-25 11:22:38 +0300 |
commit | 9a7339c997a04a1d2d39693d583229ffa550034c (patch) | |
tree | bebce316256a346fae95e27e0dce5bf560c32f90 /runtimes/CMakeLists.txt | |
parent | 8ac447adc8822a7f4064d09293dcc73cc08b1d49 (diff) | |
download | llvm-9a7339c997a04a1d2d39693d583229ffa550034c.zip llvm-9a7339c997a04a1d2d39693d583229ffa550034c.tar.gz llvm-9a7339c997a04a1d2d39693d583229ffa550034c.tar.bz2 |
[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/CMakeLists.txt')
-rw-r--r-- | runtimes/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt index b230251..aa3cef5 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() |