mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-27 03:48:33 +00:00
[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 llvm-svn: 247833
This commit is contained in:
parent
6d0a767685
commit
672311b368
@ -49,7 +49,7 @@ function(darwin_test_archs os valid_archs)
|
||||
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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user