From: Don Hinton Date: Thu, 13 Jun 2019 19:08:49 +0000 (+0000) Subject: [lit] Disable test on darwin when building shared libs. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27f23c2f067fdeb7150f117999abca7ebebf116e;p=clang [lit] Disable test on darwin when building shared libs. Summary: This test fails to link shared libraries because tries to run a copied version of clang-check to see if the mock version of libcxx in the same directory can be loaded dynamically. Since the test is specifically designed not to look in the default just-built lib directory, it must be disabled when building with BUILD_SHARED_LIBS=ON. Currently only disabling it on Darwin and basing it on the enable_shared flag. Reviewed By: ilya-biryukov Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D61697 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363298 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;