Recommit r363298 "[lit] Disable test on darwin when building shared libs."

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

llvm-svn: 363502
This commit is contained in:
Don Hinton 2019-06-15 20:09:54 +00:00
parent 456ca5d7f7
commit 0a29028072
2 changed files with 5 additions and 0 deletions

View 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;

View 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")