forked from OSchip/llvm-project
[clang] Fix cmake error
This commit is contained in:
parent
2d3953499c
commit
5a892be237
|
@ -95,7 +95,7 @@ if(CLANG_ORDER_FILE AND
|
|||
(LLVM_LINKER_IS_LD64 OR LLVM_LINKER_IS_GOLD OR LLVM_LINKER_IS_LLD))
|
||||
include(LLVMCheckLinkerFlag)
|
||||
|
||||
if (LLVM_LINKER_IS_LD64 OR (LLVM_LINKER_IS_LLD and APPLE))
|
||||
if (LLVM_LINKER_IS_LD64 OR (LLVM_LINKER_IS_LLD AND APPLE))
|
||||
set(LINKER_ORDER_FILE_OPTION "-Wl,-order_file,${CLANG_ORDER_FILE}")
|
||||
elseif (LLVM_LINKER_IS_GOLD)
|
||||
set(LINKER_ORDER_FILE_OPTION "-Wl,--section-ordering-file,${CLANG_ORDER_FILE}")
|
||||
|
|
Loading…
Reference in New Issue