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:
Daniel Stone 2020-04-14 00:41:29 -04:00 committed by Jan Vesely
parent acf079006e
commit cccdd0579b
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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")