[PATCH] D77163: libclc: Use echo rather than true for try_compile

Jan Vesely via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 07:28:08 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGacf079006e6d: libclc: Use echo rather than true for try_compile (authored by daniels, committed by jvesely).

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.257322.patch
Type: text/x-patch
Size: 1382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200414/6dc1a7a1/attachment.bin>


More information about the llvm-commits mailing list