summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2015-12-16 19:52:05 +0000
committerDiego Novillo <dnovillo@google.com>2015-12-16 19:52:05 +0000
commit1f5d84545208f0453ecfe856d74f11c25b9a4aaf (patch)
tree805a2fa18cd2da89b458dee35f5026a055a667ab
parentbfd96183ef8fb60f68be1d811fd5222b0ac953a5 (diff)
downloadbcm5719-llvm-1f5d84545208f0453ecfe856d74f11c25b9a4aaf.tar.gz
bcm5719-llvm-1f5d84545208f0453ecfe856d74f11c25b9a4aaf.zip
Add -fsyntax-only to fix failure in read-only directories.
Internally, this test is executed in a read-only directory, which causes it to fail because the driver tries to generate a file unnecessarily. Adding -fsyntax-only fixes the issue (thanks to Artem Belevich for figuring out the root cause). llvm-svn: 255809
-rw-r--r--clang/test/Driver/elfiamcu-header-search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Driver/elfiamcu-header-search.c b/clang/test/Driver/elfiamcu-header-search.c
index 6e876825089..d0f147a994c 100644
--- a/clang/test/Driver/elfiamcu-header-search.c
+++ b/clang/test/Driver/elfiamcu-header-search.c
@@ -1,6 +1,6 @@
// REQUIRES: x86-registered-target
-// RUN: %clang -target i386-pc-elfiamcu -c -v %s 2>&1 | FileCheck %s
+// RUN: %clang -target i386-pc-elfiamcu -c -v -fsyntax-only %s 2>&1 | FileCheck %s
// CHECK-NOT: /usr/include
// CHECK-NOT: /usr/local/include
OpenPOWER on IntegriCloud