]> granicus.if.org Git - clang/commit
Add -g to the cc1as flags only if we're dealing with an original
authorEric Christopher <echristo@apple.com>
Tue, 10 Jan 2012 00:38:01 +0000 (00:38 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 10 Jan 2012 00:38:01 +0000 (00:38 +0000)
commit8f0a403945b60a8a8a56a7721bb66f6b84ec129b
tree69f856e6a12fca867bf6735182c05fca7731fdc2
parent46d2a5c7f95a5dc2df95103c82802d2324b333e9
Add -g to the cc1as flags only if we're dealing with an original
source file. Otherwise -g -save-temps will error out on the compile
of any .c file.

Fixes about 4000 of the errors in the clang-tests gdb test suite.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147819 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/debug-options.c