diff --git a/clang/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp b/clang/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp index f6424380d719..26a6a8ad6e94 100644 --- a/clang/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp +++ b/clang/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/clang/test/lit.cfg.py b/clang/test/lit.cfg.py index c66ed9c08aba..465b227d0916 100644 --- a/clang/test/lit.cfg.py +++ b/clang/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")