[test-suite] r317058 - Work around crosscompilation problems with xcode SDKs
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 17:31:13 PDT 2017
Author: matze
Date: Tue Oct 31 17:31:13 2017
New Revision: 317058
URL: http://llvm.org/viewvc/llvm-project?rev=317058&view=rev
Log:
Work around crosscompilation problems with xcode SDKs
Modified:
test-suite/trunk/cmake/caches/util/xcode_sdk.cmake
Modified: test-suite/trunk/cmake/caches/util/xcode_sdk.cmake
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/util/xcode_sdk.cmake?rev=317058&r1=317057&r2=317058&view=diff
==============================================================================
--- test-suite/trunk/cmake/caches/util/xcode_sdk.cmake (original)
+++ test-suite/trunk/cmake/caches/util/xcode_sdk.cmake Tue Oct 31 17:31:13 2017
@@ -39,6 +39,11 @@ DYLD_LIBRARY_PATH=\"${COMPILER_DIR}/../l
create_shim(CMAKE_NM nm)
create_shim(CMAKE_RANLIB ranlib)
create_shim(CMAKE_STRIP strip)
+
+ # Skip linking in cmake compiler tests, as the cmake won't pass the -B flags
+ # required to pick up the correct linker to the early compiler tests. However
+ # it does have an option to not link in the early tests.
+ set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY CACHE STRING "")
else()
# Search and use compiler coming with the SDK.
# Note that we do not search CMAKE_CXX_COMPILER here. cmake will try
More information about the llvm-commits
mailing list