]> granicus.if.org Git - clang/commit
[modules] Don't leak -M flags for dependency file generation into the module
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 9 Aug 2015 02:44:20 +0000 (02:44 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 9 Aug 2015 02:44:20 +0000 (02:44 +0000)
commit3d49db3ad3575bdcd0e451627037090e7a594e06
tree30c7a285d2013f418323f31b4262d55b94760f82
parent3d48296e403ca498122af53721fcb195903456fe
[modules] Don't leak -M flags for dependency file generation into the module
build process when we implicitly build a module. Previously, we'd create the
specified .d file once for each implicitly-built module and then finally
overwrite it with the correct contents after the requested build completes.
(This fails if you use stdout as a dependency file, which is what the provided
testcase does, and is how I discovered this brokenness.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244412 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/CompilerInstance.cpp
test/Modules/dependency-gen.modulemap