From: Don Hinton Date: Sat, 15 Jun 2019 20:09:54 +0000 (+0000) Subject: Recommit r363298 "[lit] Disable test on darwin when building shared libs." X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=081e474cb6ed858b3d58a22a1ff576ec42559179;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363502 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp b/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp index f6424380d7..26a6a8ad6e 100644 --- a/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp +++ b/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp @@ -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 vector v; diff --git a/test/lit.cfg.py b/test/lit.cfg.py index c66ed9c08a..465b227d09 100644 --- a/test/lit.cfg.py +++ b/test/lit.cfg.py @@ -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")