]> granicus.if.org Git - clang/commit
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)
commit8f1095856a7cb03c455b46f5d1cbfb1e0127610e
tree572540e0e973f92432c08f0da3946089a2ed45b4
parenta92eeaef0b2e6a07c724d3a635d28d369489dac4
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231997 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Job.cpp
test/Driver/crash-report-modules.m