[compiler-rt] r210534 - Add detection of OS X relocatable SDK to compiler-rt as a lit.util function
Alexander Potapenko
glider at google.com
Tue Jun 10 07:22:01 PDT 2014
Author: glider
Date: Tue Jun 10 09:22:00 2014
New Revision: 210534
URL: http://llvm.org/viewvc/llvm-project?rev=210534&view=rev
Log:
Add detection of OS X relocatable SDK to compiler-rt as a lit.util function
Clang's lit cfg already detects the currently selected SDK via
"xcrun --show-sdk-path". The same thing should be done for compiler-rt tests,
to make them work on recent OS X versions. Instead of duplicating the detection
code, this patch extracts the detection function into a lit.util method.
Patch by Kuba Brecka (kuba.brecka at gmail.com),
reviewed at http://reviews.llvm.org/D4072
Modified:
compiler-rt/trunk/test/lit.common.cfg
Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=210534&r1=210533&r2=210534&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Tue Jun 10 09:22:00 2014
@@ -7,6 +7,7 @@ import os
import platform
import lit.formats
+import lit.util
# Setup test format
execute_external = (platform.system() != 'Windows'
@@ -77,3 +78,5 @@ if compiler_rt_arch:
compiler_rt_debug = getattr(config, 'compiler_rt_debug', False)
if not compiler_rt_debug:
config.available_features.add('compiler-rt-optimized')
+
+lit.util.usePlatformSdkOnDarwin(config, lit_config)
More information about the llvm-commits
mailing list