aboutsummaryrefslogtreecommitdiff
path: root/libclc
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2020-04-14 00:42:50 -0400
committerJan Vesely <jano.vesely@gmail.com>2020-04-14 10:03:27 -0400
commit24fad7278a391c6f8af664f4ac691c1719008a09 (patch)
tree7de4484e7622d5bb231711561ea09916790b33f6 /libclc
parentcccdd0579b5027d0a21fd2dbc0a6a50330134976 (diff)
downloadllvm-24fad7278a391c6f8af664f4ac691c1719008a09.zip
llvm-24fad7278a391c6f8af664f4ac691c1719008a09.tar.gz
llvm-24fad7278a391c6f8af664f4ac691c1719008a09.tar.bz2
libclc: Use temporary files rather than a pipe
This is required for using the Ninja backend on Windows, as it passes commands directly to CreateProcess, and does not allow the shell to interpret them: https://ninja-build.org/manual.html#ref_rule_command Using the Visual Studio backend is not possible as attempting to create a static library target comprised entirely of novel languages not known to the Visual Studio backend built in to CMake's C++ source will generate nothing at all. reviewer: jvesely Differential Revision: https://reviews.llvm.org/D77165
Diffstat (limited to 'libclc')
-rw-r--r--libclc/cmake/CMakeLLAsmInformation.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/libclc/cmake/CMakeLLAsmInformation.cmake b/libclc/cmake/CMakeLLAsmInformation.cmake
index 73fb28e..218e20a 100644
--- a/libclc/cmake/CMakeLLAsmInformation.cmake
+++ b/libclc/cmake/CMakeLLAsmInformation.cmake
@@ -1,6 +1,7 @@
if(NOT CMAKE_LLAsm_COMPILE_OBJECT)
set(CMAKE_LLAsm_COMPILE_OBJECT
- "${CMAKE_LLAsm_PREPROCESSOR} -E -P <DEFINES> <INCLUDES> <FLAGS> -x cl <SOURCE> -o - | <CMAKE_LLAsm_COMPILER> -o <OBJECT> ")
+ "${CMAKE_LLAsm_PREPROCESSOR} -E -P <DEFINES> <INCLUDES> <FLAGS> -x cl <SOURCE> -o <OBJECT>.temp"
+ "<CMAKE_LLAsm_COMPILER> -o <OBJECT> <OBJECT>.temp")
endif()
if(NOT CMAKE_LLAsm_CREATE_STATIC_LIBRARY)