Driver: Keep -isysroot flags in crash scripts if we're dumping a VFS
authorJustin Bogner <mail@justinbogner.com>
Thu, 12 Mar 2015 00:52:56 +0000 (00:52 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 12 Mar 2015 00:52:56 +0000 (00:52 +0000)
commit0cb14759fcf9493075f97e60c28ce19c6a827f72
tree51e47fb2221517af4111a214a0421b8f7d6f8e3a
parent325297c1015c147798626ab58d7b8335b73053f3
Driver: Keep -isysroot flags in crash scripts if we're dumping a VFS

For crashes with a VFS (ie, with modules), the -isysroot flag is often
necessary to reproduce the crash. This is especially true if some
modules need to be rebuilt, since without the sysroot they'll try to
read headers that are outside of the VFS.

I find it likely that we should keep some of the other -i flags in
this case as well, but I haven't seen that come up in practice yet so
it seems better to be conservative.

llvm-svn: 231997
clang/lib/Driver/Job.cpp
clang/test/Driver/crash-report-modules.m