]> granicus.if.org Git - clang/commitdiff
Recommit r363298 "[lit] Disable test on darwin when building shared libs."
authorDon Hinton <hintonda@gmail.com>
Sat, 15 Jun 2019 20:09:54 +0000 (20:09 +0000)
committerDon Hinton <hintonda@gmail.com>
Sat, 15 Jun 2019 20:09:54 +0000 (20:09 +0000)
Was reverted in r363379 due to build breakage.

Thanks to Nico Weber for reverting the original and suggesting the
fix.

Please see https://reviews.llvm.org/D61697

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363502 91177308-0d34-0410-b5e6-96231b3b80d8

test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp
test/lit.cfg.py

index f6424380d719322ad140a1bb8cee424dde53888f..26a6a8ad6e9447cae73ace066fb8c19b0997cf59 100644 (file)
@@ -16,5 +16,7 @@
 //
 // ^ -ccc-install-dir passed to unbreak tests on *BSD where
 //   getMainExecutable() relies on real argv[0] being passed
+//
+// UNSUPPORTED: enable_shared
 #include <mock_vector>
 vector v;
index c66ed9c08aba98c5354293872ffd6d1646272d8c..465b227d0916f73f0e3478b58ecfad2b33253a20 100644 (file)
@@ -183,3 +183,6 @@ if macOSSDKVersion is not None:
 
 if os.path.exists('/etc/gentoo-release'):
     config.available_features.add('gentoo')
+
+if config.enable_shared:
+    config.available_features.add("enable_shared")