]> granicus.if.org Git - clang/commitdiff
Set '-target' flag in the test checking the MacOS include dir
authorIlya Biryukov <ibiryukov@google.com>
Wed, 16 Jan 2019 13:18:59 +0000 (13:18 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 16 Jan 2019 13:18:59 +0000 (13:18 +0000)
To fix a buildbot failure on PS4, see
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/42251

The test was added in r351222 and aims to check only a particular
Mac configuration. However it relied on the default compiler target
by default, therefore unintentionally failing on PS4.

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

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

index 035155c96c925800205c72db43519539a3509cee..fd0003e9b3828e322e13fd49de1e3a28a3605ce1 100644 (file)
@@ -10,7 +10,7 @@
 //
 // RUN: cp $(which clang-check) %t/mock-libcxx/bin/
 // RUN: cp "%s" "%t/test.cpp"
-// RUN: %t/mock-libcxx/bin/clang-check -p "%t" "%t/test.cpp" -- -stdlib=libc++
+// RUN: %t/mock-libcxx/bin/clang-check -p "%t" "%t/test.cpp" -- -stdlib=libc++ -target x86_64-apple-darwin
 
 #include <mock_vector>
 vector v;