]> granicus.if.org Git - clang/commit
In r135308, -save-temps was modified to prevent a temporary file from
authorChad Rosier <mcrosier@apple.com>
Fri, 20 Apr 2012 20:05:08 +0000 (20:05 +0000)
committerChad Rosier <mcrosier@apple.com>
Fri, 20 Apr 2012 20:05:08 +0000 (20:05 +0000)
commit61ada0a7a8e743a50f5f8305e2e49d4447212a69
tree89539489d86ff46941cedf0c22add997c1e3e782
parent704c8f76bbe2de68375f7f146e75bd74de6dd518
In r135308, -save-temps was modified to prevent a temporary file from
overwriting the input file.  For example,

clang -c foo.s -o foo.o -save-temps

Unfortunately, the original patch didn't compare the paths of the input and
output files.  Thus, something like the following would fail to create foo.s.

cd /tmp/obj
clang -c ../src/foo.s -o foo.o -save-temps

rdar://11252615

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155224 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Driver.cpp