diff options
author | Daniel Stone <daniels@collabora.com> | 2020-04-14 00:40:20 -0400 |
---|---|---|
committer | Jan Vesely <jano.vesely@gmail.com> | 2020-04-14 10:03:27 -0400 |
commit | acf079006e6dbdd23300e9289cc8d8197aab5fb5 (patch) | |
tree | 7db4c81659bb013dd465df6cb91e9a6386e80cc9 /libclc | |
parent | e6bb1d69eccc612e54fd1a0b63ca3dcc84c3a6fa (diff) | |
download | llvm-acf079006e6dbdd23300e9289cc8d8197aab5fb5.zip llvm-acf079006e6dbdd23300e9289cc8d8197aab5fb5.tar.gz llvm-acf079006e6dbdd23300e9289cc8d8197aab5fb5.tar.bz2 |
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
Diffstat (limited to 'libclc')
-rw-r--r-- | libclc/cmake/CMakeTestCLCCompiler.cmake | 2 | ||||
-rw-r--r-- | libclc/cmake/CMakeTestLLAsmCompiler.cmake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libclc/cmake/CMakeTestCLCCompiler.cmake b/libclc/cmake/CMakeTestCLCCompiler.cmake index fae660f..869fcc3 100644 --- a/libclc/cmake/CMakeTestCLCCompiler.cmake +++ b/libclc/cmake/CMakeTestCLCCompiler.cmake @@ -24,7 +24,7 @@ if(NOT CMAKE_CLC_COMPILER_WORKS) try_compile(CMAKE_CLC_COMPILER_WORKS ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCLCCompiler.cl # We never generate executable so bypass the link step - CMAKE_FLAGS -DCMAKE_CLC_LINK_EXECUTABLE='true' + CMAKE_FLAGS -DCMAKE_CLC_LINK_EXECUTABLE='echo' OUTPUT_VARIABLE __CMAKE_CLC_COMPILER_OUTPUT) # Move result from cache to normal variable. set(CMAKE_CLC_COMPILER_WORKS ${CMAKE_CLC_COMPILER_WORKS}) diff --git a/libclc/cmake/CMakeTestLLAsmCompiler.cmake b/libclc/cmake/CMakeTestLLAsmCompiler.cmake index 1a87457..35948ee 100644 --- a/libclc/cmake/CMakeTestLLAsmCompiler.cmake +++ b/libclc/cmake/CMakeTestLLAsmCompiler.cmake @@ -24,7 +24,7 @@ if(NOT CMAKE_LLAsm_COMPILER_WORKS) try_compile(CMAKE_LLAsm_COMPILER_WORKS ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testLLAsmCompiler.ll # We never generate executable so bypass the link step - CMAKE_FLAGS -DCMAKE_LLAsm_LINK_EXECUTABLE='true' + CMAKE_FLAGS -DCMAKE_LLAsm_LINK_EXECUTABLE='echo' OUTPUT_VARIABLE __CMAKE_LLAsm_COMPILER_OUTPUT) # Move result from cache to normal variable. set(CMAKE_LLAsm_COMPILER_WORKS ${CMAKE_LLAsm_COMPILER_WORKS}) |