mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
bdb13d2c7c
Differential Revision: https://reviews.llvm.org/D28046 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291719 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
303 B
CMake
9 lines
303 B
CMake
include(CheckCXXCompilerFlag)
|
|
|
|
function(check_linker_flag flag out_var)
|
|
set(OLD_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
|
|
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${flag}")
|
|
check_cxx_compiler_flag("" ${out_var})
|
|
set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS})
|
|
endfunction()
|