Skip to content

Commit acf0790

Browse files
fooishbarjvesely
authored andcommitted
libclc: Use echo rather than true for try_compile
When providing a fake compiler, libclc currently uses 'true' which does not exist on Windows. Use echo instead as the no-op. reviewer: jvesely Differential Revision: https://reviews.llvm.org/D77163
1 parent e6bb1d6 commit acf0790

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libclc/cmake/CMakeTestCLCCompiler.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if(NOT CMAKE_CLC_COMPILER_WORKS)
2424
try_compile(CMAKE_CLC_COMPILER_WORKS ${CMAKE_BINARY_DIR}
2525
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCLCCompiler.cl
2626
# We never generate executable so bypass the link step
27-
CMAKE_FLAGS -DCMAKE_CLC_LINK_EXECUTABLE='true'
27+
CMAKE_FLAGS -DCMAKE_CLC_LINK_EXECUTABLE='echo'
2828
OUTPUT_VARIABLE __CMAKE_CLC_COMPILER_OUTPUT)
2929
# Move result from cache to normal variable.
3030
set(CMAKE_CLC_COMPILER_WORKS ${CMAKE_CLC_COMPILER_WORKS})

libclc/cmake/CMakeTestLLAsmCompiler.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if(NOT CMAKE_LLAsm_COMPILER_WORKS)
2424
try_compile(CMAKE_LLAsm_COMPILER_WORKS ${CMAKE_BINARY_DIR}
2525
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testLLAsmCompiler.ll
2626
# We never generate executable so bypass the link step
27-
CMAKE_FLAGS -DCMAKE_LLAsm_LINK_EXECUTABLE='true'
27+
CMAKE_FLAGS -DCMAKE_LLAsm_LINK_EXECUTABLE='echo'
2828
OUTPUT_VARIABLE __CMAKE_LLAsm_COMPILER_OUTPUT)
2929
# Move result from cache to normal variable.
3030
set(CMAKE_LLAsm_COMPILER_WORKS ${CMAKE_LLAsm_COMPILER_WORKS})

0 commit comments

Comments
 (0)