Skip to content

Commit 24fad72

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libclc/cmake/CMakeLLAsmInformation.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
if(NOT CMAKE_LLAsm_COMPILE_OBJECT)
22
set(CMAKE_LLAsm_COMPILE_OBJECT
3-
"${CMAKE_LLAsm_PREPROCESSOR} -E -P <DEFINES> <INCLUDES> <FLAGS> -x cl <SOURCE> -o - | <CMAKE_LLAsm_COMPILER> -o <OBJECT> ")
3+
"${CMAKE_LLAsm_PREPROCESSOR} -E -P <DEFINES> <INCLUDES> <FLAGS> -x cl <SOURCE> -o <OBJECT>.temp"
4+
"<CMAKE_LLAsm_COMPILER> -o <OBJECT> <OBJECT>.temp")
45
endif()
56

67
if(NOT CMAKE_LLAsm_CREATE_STATIC_LIBRARY)

0 commit comments

Comments
 (0)