summaryrefslogtreecommitdiff
path: root/libcxx/cmake
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2023-02-22 17:32:07 +0000
committerPetr Hosek <phosek@google.com>2023-02-22 17:32:07 +0000
commit24d144571dbffc6993d13fb7ca781248eed024de (patch)
tree85bbc61aaa94f8c7654711dad841a0eb5be26570 /libcxx/cmake
parent944f429b210d0d94171dc5df3068d4f1e8fb5d80 (diff)
downloadllvm-24d144571dbffc6993d13fb7ca781248eed024de.tar.gz
Revert "[CMake] Unify llvm_check_linker_flag and llvm_check_compiler_linker_flag"
This reverts commit efae3174f09560353fb0f3d528bcbffe060d5438 since it broke the standalone Flang build.
Diffstat (limited to 'libcxx/cmake')
-rw-r--r--libcxx/cmake/config-ix.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/cmake/config-ix.cmake b/libcxx/cmake/config-ix.cmake
index ffc17dff7412..3bae53643683 100644
--- a/libcxx/cmake/config-ix.cmake
+++ b/libcxx/cmake/config-ix.cmake
@@ -1,6 +1,6 @@
include(CMakePushCheckState)
include(CheckLibraryExists)
-include(LLVMCheckLinkerFlag)
+include(LLVMCheckCompilerLinkerFlag)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
include(CheckCSourceCompiles)
@@ -12,7 +12,7 @@ include(CheckCSourceCompiles)
# libunwind (and the compiler implicit -lunwind wouldn't succeed as the newly
# built libunwind isn't installed yet). For those cases, it'd be good to
# link with --uwnindlib=none. Check if that option works.
-llvm_check_linker_flag(C "--unwindlib=none" CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG)
+llvm_check_compiler_linker_flag(C "--unwindlib=none" CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG)
if(WIN32 AND NOT MINGW)
# NOTE(compnerd) this is technically a lie, there is msvcrt, but for now, lets