[compiler-rt] r247833 - [CMake] Make the sample program in darwin_test_archs have a symbol it needs to link.

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 11:29:52 PDT 2015


Author: cbieneman
Date: Wed Sep 16 13:29:52 2015
New Revision: 247833

URL: http://llvm.org/viewvc/llvm-project?rev=247833&view=rev
Log:
[CMake] Make the sample program in darwin_test_archs have a symbol it needs to link.

This resolves an issue building compiler-rt using Xcode 7 that was reported on llvm-dev:

http://lists.llvm.org/pipermail/llvm-dev/2015-September/090245.html

Modified:
    compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake

Modified: compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake?rev=247833&r1=247832&r2=247833&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake Wed Sep 16 13:29:52 2015
@@ -49,7 +49,7 @@ function(darwin_test_archs os valid_arch
   set(archs ${ARGN})
   message(STATUS "Finding valid architectures for ${os}...")
   set(SIMPLE_CPP ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/src.cpp)
-  file(WRITE ${SIMPLE_CPP} "#include <iostream>\nint main() { return 0; }\n")
+  file(WRITE ${SIMPLE_CPP} "#include <iostream>\nint main() { std::cout << std::endl; return 0; }\n")
 
   set(os_linker_flags)
   foreach(flag ${DARWIN_${os}_LINKFLAGS})




More information about the llvm-commits mailing list