Skip to content

Commit

Permalink
more clean-ups in LLVMCheckCompilerLinkerFlag
Browse files Browse the repository at this point in the history
Co-Authored-By: Ryan Prichard <[email protected]>
  • Loading branch information
h-vetinari and rprichard committed Jul 25, 2024
1 parent 2f3fd55 commit a475548
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions cmake/Modules/LLVMCheckCompilerLinkerFlag.cmake
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
include(CMakePushCheckState)

include(CheckCompilerFlag OPTIONAL)

if(NOT COMMAND check_compiler_flag)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
endif()
include(CheckCompilerFlag)

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
# If testing a flag with check_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 if it was included on both commands.
Expand Down

0 comments on commit a475548

Please sign in to comment.