From 79f3caa5fe3a30902951ce6f72a5caca278a46c7 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Wed, 16 Dec 2015 19:52:05 +0000 Subject: [PATCH] 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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255809 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/elfiamcu-header-search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Driver/elfiamcu-header-search.c b/test/Driver/elfiamcu-header-search.c index 6e87682508..d0f147a994 100644 --- a/test/Driver/elfiamcu-header-search.c +++ b/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 -- 2.40.0