[PATCH] D77163: libclc: Use echo rather than true for try_compile
Daniel Stone via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 14:10:49 PDT 2020
daniels updated this revision to Diff 255484.
daniels added a comment.
rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77163/new/
https://reviews.llvm.org/D77163
Files:
libclc/cmake/CMakeTestCLCCompiler.cmake
libclc/cmake/CMakeTestLLAsmCompiler.cmake
Index: libclc/cmake/CMakeTestLLAsmCompiler.cmake
===================================================================
--- libclc/cmake/CMakeTestLLAsmCompiler.cmake
+++ libclc/cmake/CMakeTestLLAsmCompiler.cmake
@@ -24,7 +24,7 @@
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})
Index: libclc/cmake/CMakeTestCLCCompiler.cmake
===================================================================
--- libclc/cmake/CMakeTestCLCCompiler.cmake
+++ libclc/cmake/CMakeTestCLCCompiler.cmake
@@ -24,7 +24,7 @@
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})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77163.255484.patch
Type: text/x-patch
Size: 1382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200406/d2adff89/attachment.bin>
More information about the llvm-commits
mailing list