From e03437c756220fe802c67b17bda8f142f86e9cdc Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Wed, 5 Aug 2015 23:49:44 +0000 Subject: 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 --- clang/lib/Driver/Job.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Driver') 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); -- cgit v1.2.3