[test-suite] r318585 - [test-suite] Fix Xcode SDK cmake cache for benchmarks using re_comp

Francis Visoiu Mistrih via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 18:17:53 PST 2017


Author: thegameg
Date: Fri Nov 17 18:17:53 2017
New Revision: 318585

URL: http://llvm.org/viewvc/llvm-project?rev=318585&view=rev
Log:
[test-suite] Fix Xcode SDK cmake cache for benchmarks using re_comp

cmake thinks it found re_comp after r317058.

Test affected:
* MultiSource/Benchmarks/Prolangs-C/plot2fig
* MultiSource/Benchmarks/Prolangs-C/archie-client

Differential Revision: https://reviews.llvm.org/D40204

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=318585&r1=318584&r2=318585&view=diff
==============================================================================
--- test-suite/trunk/cmake/caches/util/xcode_sdk.cmake (original)
+++ test-suite/trunk/cmake/caches/util/xcode_sdk.cmake Fri Nov 17 18:17:53 2017
@@ -44,6 +44,13 @@ DYLD_LIBRARY_PATH=\"${COMPILER_DIR}/../l
   # 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 "")
+
+  # Some benchmarks check for the function re_comp by using
+  # check_function_exists. This function is not available in any Xcode SDK, and
+  # the check returns YES with custom built compilers when we cross-compile,
+  # because of "CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY" explained just
+  # above. We work around that by forcing it to NO.
+  set(HAVE_RE_COMP CACHE BOOL NO)
 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