r255809 - Add -fsyntax-only to fix failure in read-only directories.

Diego Novillo via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 16 11:52:05 PST 2015


Author: dnovillo
Date: Wed Dec 16 13:52:05 2015
New Revision: 255809

URL: http://llvm.org/viewvc/llvm-project?rev=255809&view=rev
Log:
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).

Modified:
    cfe/trunk/test/Driver/elfiamcu-header-search.c

Modified: cfe/trunk/test/Driver/elfiamcu-header-search.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/elfiamcu-header-search.c?rev=255809&r1=255808&r2=255809&view=diff
==============================================================================
--- cfe/trunk/test/Driver/elfiamcu-header-search.c (original)
+++ cfe/trunk/test/Driver/elfiamcu-header-search.c Wed Dec 16 13:52:05 2015
@@ -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
 




More information about the cfe-commits mailing list