summaryrefslogtreecommitdiff
path: root/libclc
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2020-04-14 00:41:29 -0400
committerJan Vesely <jano.vesely@gmail.com>2020-04-14 10:03:27 -0400
commitcccdd0579b5027d0a21fd2dbc0a6a50330134976 (patch)
tree27cda5399883b73c19cde74cc1b0059fa8181c5f /libclc
parentacf079006e6dbdd23300e9289cc8d8197aab5fb5 (diff)
downloadllvm-cccdd0579b5027d0a21fd2dbc0a6a50330134976.tar.gz
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
Diffstat (limited to 'libclc')
-rw-r--r--libclc/cmake/CMakeCLCInformation.cmake2
-rw-r--r--libclc/cmake/CMakeLLAsmInformation.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/libclc/cmake/CMakeCLCInformation.cmake b/libclc/cmake/CMakeCLCInformation.cmake
index dfbdda9941a7..6eecf4edf0e7 100644
--- a/libclc/cmake/CMakeCLCInformation.cmake
+++ b/libclc/cmake/CMakeCLCInformation.cmake
@@ -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")
diff --git a/libclc/cmake/CMakeLLAsmInformation.cmake b/libclc/cmake/CMakeLLAsmInformation.cmake
index f1d013b02887..73fb28e13135 100644
--- a/libclc/cmake/CMakeLLAsmInformation.cmake
+++ b/libclc/cmake/CMakeLLAsmInformation.cmake
@@ -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")