if (COMMAND check_linker_flag) macro(llvm_check_compiler_linker_flag) check_linker_flag(${ARGN}) endmacro() else() # Until the minimum CMAKE version is 3.18 include(CheckCompilerFlag OPTIONAL) if(NOT COMMAND check_compiler_flag) include(CheckCCompilerFlag) include(CheckCXXCompilerFlag) endif...
llvm_check_linker_flag(CXX${flag_long_plt}HAVE_LINKER_FLAG_LONG_PLT) 72+ check_linker_flag(CXX${flag_long_plt}HAVE_LINKER_FLAG_LONG_PLT) 7373 if(HAVE_LINKER_FLAG_LONG_PLT) 7474 target_link_options(clang-replPRIVATE${flag_long_plt}) ...
Revert "[CMake] Unify llvm_check_linker_flag and llvm_check_compiler_… Browse files …linker_flag" This reverts commit efae317 since it broke the standalone Flang build. develop v0.1.0-alpha.1 … llvmorg-17.0.0-rc1 petrhosek committed Feb 22, 2023 1 parent 944f429 commit 24...
include(CheckCompilerFlag OPTIONAL) if (COMMAND check_linker_flag) macro(llvm_check_compiler_linker_flag) check_linker_flag(${ARGN}) endmacro() else() # Until the minimum CMAKE version is 3.18 if(NOT COMMAND check_compiler_flag) include(CheckCCompilerFlag) include(CheckCXXCompilerFlag) endif...
function(llvm_check_compiler_linker_flag lang flag out_var) # If testing a flag with check_c_compiler_flag, it gets added to the compile # command only, but not to the linker command in that test. If the flag # is vital for linking to succeed, the test would fail even if it would...
function(llvm_check_compiler_linker_flag lang flag out_var) # If testing a flag with check_c_compiler_flag, it gets added to the compile # command only, but not to the linker command in that test. If the flag # is vital for linking to succeed, the test would fail even if it would...
{llvm,compiler_rt}_check_linker_flag… Browse files …for runtime libs and llvm We previously had a few varied definitions of this floating around. I had tried to make the one installed with LLVM handle all the cases, and then made the others use it, but this ran into issues with `...
Revert "[CMake] Unify llvm_check_linker_flag and llvm_check_compiler_linker_flag" This reverts commitefae317since it broke the standalone Flang build. main · llvm-mos-windows-debug llvm-mos-darwin-debug 1 parent944f429commit24d1445 ...
function(llvm_check_compiler_linker_flag lang flag out_var) # If testing a flag with check_c_compiler_flag, it gets added to the compile # command only, but not to the linker command in that test. If the flag # is vital for linking to succeed, the test would fail even if it would...
function(llvm_check_linker_flag flag dest) # If testing a flag with check_c_compiler_flag, it gets added to the compile # command only, but not to the linker command in that test. If the flag # is vital for linking to succeed, the test would fail even if it would # have succeeded...