From: Argyrios Kyrtzidis Date: Sat, 25 Feb 2017 18:55:32 +0000 (+0000) Subject: [test] Use cc1 -triple for test/Index/pch-from-libclang.c. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c680a85670587af4ba9034d206f34c7a6e70d8d2;p=clang [test] Use cc1 -triple for test/Index/pch-from-libclang.c. Note quite sure why driver -target has no effect. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296265 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Index/pch-from-libclang.c b/test/Index/pch-from-libclang.c index 84d298e1df..c944cd69c0 100644 --- a/test/Index/pch-from-libclang.c +++ b/test/Index/pch-from-libclang.c @@ -1,6 +1,6 @@ // Check that clang can use a PCH created from libclang. -// RUN: c-index-test -write-pch %t.h.pch %s -fmodules -fmodules-cache-path=%t.mcp -target x86_64-apple-darwin -// RUN: %clang -fsyntax-only -include %t.h %s -Xclang -verify -fmodules -fmodules-cache-path=%t.mcp -Xclang -detailed-preprocessing-record -target x86_64-apple-darwin +// RUN: c-index-test -write-pch %t.h.pch %s -fmodules -fmodules-cache-path=%t.mcp -Xclang -triple -Xclang x86_64-apple-darwin +// RUN: %clang -fsyntax-only -include %t.h %s -Xclang -verify -fmodules -fmodules-cache-path=%t.mcp -Xclang -detailed-preprocessing-record -Xclang -triple -Xclang x86_64-apple-darwin // expected-no-diagnostics