diff options
| author | Justin Bogner <mail@justinbogner.com> | 2015-08-05 23:49:44 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2015-08-05 23:49:44 +0000 |
| commit | e03437c756220fe802c67b17bda8f142f86e9cdc (patch) | |
| tree | a665d7226ccfff7b89ec53f02c7531af3e233709 /clang | |
| parent | 964a5f3b5c65ba72d4f5e57cba65582c39bdae70 (diff) | |
| download | bcm5719-llvm-e03437c756220fe802c67b17bda8f142f86e9cdc.tar.gz bcm5719-llvm-e03437c756220fe802c67b17bda8f142f86e9cdc.zip | |
Driver: Strip -header-include-file and -diagnostic-log-file from crash repro scripts
These two arguments tend to refer to a local path that won't exist
when we try to reproduce a bug. Strip them.
llvm-svn: 244179
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/Driver/Job.cpp | 1 | ||||
| -rw-r--r-- | clang/test/Driver/crash-report.c | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/clang/lib/Driver/Job.cpp b/clang/lib/Driver/Job.cpp index cd382b3356f..22904e5398a 100644 --- a/clang/lib/Driver/Job.cpp +++ b/clang/lib/Driver/Job.cpp @@ -48,6 +48,7 @@ static int skipArgs(const char *Flag, bool HaveCrashVFS) { .Cases("-iwithprefixbefore", "-isystem", "-iquote", true) .Cases("-resource-dir", "-serialize-diagnostic-file", true) .Cases("-dwarf-debug-flags", "-ivfsoverlay", true) + .Cases("-header-include-file", "-diagnostic-log-file", true) // Some include flags shouldn't be skipped if we have a crash VFS .Case("-isysroot", !HaveCrashVFS) .Default(false); diff --git a/clang/test/Driver/crash-report.c b/clang/test/Driver/crash-report.c index 38813e3bb8a..a3f1f9e72a5 100644 --- a/clang/test/Driver/crash-report.c +++ b/clang/test/Driver/crash-report.c @@ -1,7 +1,9 @@ // RUN: rm -rf %t // RUN: mkdir %t -// RUN: not env TMPDIR=%t TEMP=%t TMP=%t RC_DEBUG_OPTIONS=1 %clang -fsyntax-only %s \ -// RUN: -F/tmp/ -I /tmp/ -idirafter /tmp/ -iquote /tmp/ -isystem /tmp/ \ +// RUN: not env TMPDIR=%t TEMP=%t TMP=%t RC_DEBUG_OPTIONS=1 \ +// RUN: CC_PRINT_HEADERS=1 CC_LOG_DIAGNOSTICS=1 \ +// RUN: %clang -fsyntax-only %s \ +// RUN: -F/tmp/ -I /tmp/ -idirafter /tmp/ -iquote /tmp/ -isystem /tmp/ \ // RUN: -iprefix /the/prefix -iwithprefix /tmp -iwithprefixbefore /tmp/ \ // RUN: -Xclang -internal-isystem -Xclang /tmp/ \ // RUN: -Xclang -internal-externc-isystem -Xclang /tmp/ \ @@ -26,6 +28,8 @@ FOO // CHECKSH-NEXT: # Original command: {{.*$}} // CHECKSH-NEXT: "-cc1" // CHECKSH: "-main-file-name" "crash-report.c" +// CHECKSH-NOT: "-header-include-file" +// CHECKSH-NOT: "-diagnostic-log-file" // CHECKSH: "-D" "FOO=BAR" // CHECKSH: "-D" "BAR=BAZ QUX" // CHECKSH-NOT: "-F/tmp/" |

