forked from OSchip/llvm-project
libclc: Don't pass linker flags to CLC/LLAsm
We don't want the regular linker flags for these invocations, since we're not compiling to the target machine anyway. This fixes things like '/machine:x64' being unknown when invoked under Windows. reviewer: jvesely Differential Revision: https://reviews.llvm.org/D77164
This commit is contained in:
parent
acf079006e
commit
cccdd0579b
|
@ -5,7 +5,7 @@ endif()
|
|||
|
||||
if(NOT CMAKE_CLC_CREATE_STATIC_LIBRARY)
|
||||
set(CMAKE_CLC_CREATE_STATIC_LIBRARY
|
||||
"<CMAKE_CLC_ARCHIVE> <LINK_FLAGS> -o <TARGET> <OBJECTS>")
|
||||
"<CMAKE_CLC_ARCHIVE> -o <TARGET> <OBJECTS>")
|
||||
endif()
|
||||
|
||||
set(CMAKE_INCLUDE_FLAG_CLC "-I")
|
||||
|
|
|
@ -5,7 +5,7 @@ endif()
|
|||
|
||||
if(NOT CMAKE_LLAsm_CREATE_STATIC_LIBRARY)
|
||||
set(CMAKE_LLAsm_CREATE_STATIC_LIBRARY
|
||||
"<CMAKE_LLAsm_ARCHIVE> <LINK_FLAGS> -o <TARGET> <OBJECTS>")
|
||||
"<CMAKE_LLAsm_ARCHIVE> -o <TARGET> <OBJECTS>")
|
||||
endif()
|
||||
|
||||
set(CMAKE_INCLUDE_FLAG_LLAsm "-I")
|
||||
|
|
Loading…
Reference in New Issue