[PATCH] D46152: [CMake] Make simple source used for CMake checks a C file

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 26 16:38:34 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL331003: [CMake] Make simple source used for CMake checks a C file (authored by phosek, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D46152?vs=144235&id=144237#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D46152

Files:
  compiler-rt/trunk/cmake/config-ix.cmake


Index: compiler-rt/trunk/cmake/config-ix.cmake
===================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake
+++ compiler-rt/trunk/cmake/config-ix.cmake
@@ -125,7 +125,7 @@
 # platform. We use the results of these tests to build only the various target
 # runtime libraries supported by our current compilers cross-compiling
 # abilities.
-set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.cc)
+set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.c)
 file(WRITE ${SIMPLE_SOURCE} "#include <stdlib.h>\n#include <stdio.h>\nint main() { printf(\"hello, world\"); }\n")
 
 # Detect whether the current target platform is 32-bit or 64-bit, and setup


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46152.144237.patch
Type: text/x-patch
Size: 731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180426/ffb82024/attachment.bin>


More information about the llvm-commits mailing list