Skip to content

Commit cccdd05

Browse files
fooishbarjvesely
authored andcommitted
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
1 parent acf0790 commit cccdd05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libclc/cmake/CMakeCLCInformation.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ endif()
55

66
if(NOT CMAKE_CLC_CREATE_STATIC_LIBRARY)
77
set(CMAKE_CLC_CREATE_STATIC_LIBRARY
8-
"<CMAKE_CLC_ARCHIVE> <LINK_FLAGS> -o <TARGET> <OBJECTS>")
8+
"<CMAKE_CLC_ARCHIVE> -o <TARGET> <OBJECTS>")
99
endif()
1010

1111
set(CMAKE_INCLUDE_FLAG_CLC "-I")

libclc/cmake/CMakeLLAsmInformation.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ endif()
55

66
if(NOT CMAKE_LLAsm_CREATE_STATIC_LIBRARY)
77
set(CMAKE_LLAsm_CREATE_STATIC_LIBRARY
8-
"<CMAKE_LLAsm_ARCHIVE> <LINK_FLAGS> -o <TARGET> <OBJECTS>")
8+
"<CMAKE_LLAsm_ARCHIVE> -o <TARGET> <OBJECTS>")
99
endif()
1010

1111
set(CMAKE_INCLUDE_FLAG_LLAsm "-I")

0 commit comments

Comments
 (0)