forked from OSchip/llvm-project
[Driver] Quote clang full version in dwarf producer when invoking cc1as
Convenience to allow easy copy-n-paste from clang -v output when reproducing cc1as comandline. rdar://problem/23959295 llvm-svn: 264813
This commit is contained in:
parent
2c6d2b3c5e
commit
b741e10402
|
@ -6226,7 +6226,8 @@ void ClangAs::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
// Set the AT_producer to the clang version when using the integrated
|
||||
// assembler on assembly source files.
|
||||
CmdArgs.push_back("-dwarf-debug-producer");
|
||||
CmdArgs.push_back(Args.MakeArgString(getClangFullVersion()));
|
||||
std::string QuotedClangVersion("'" + getClangFullVersion() + "'");
|
||||
CmdArgs.push_back(Args.MakeArgString(QuotedClangVersion));
|
||||
|
||||
// And pass along -I options
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_I);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Run cc1as asm output path just to make sure it works
|
||||
// REQUIRES: x86-registered-target
|
||||
// RUN: %clang -cc1as -triple x86_64-apple-macosx10.10.0 -filetype asm %s -o /dev/null
|
||||
// Test that cc1as is able to consume a quoted clang full version
|
||||
// RUN: %clang -cc1as -triple x86_64-apple-macosx10.10.0 -dwarf-debug-producer 'clang dummy version' -filetype asm %s -o /dev/null
|
||||
|
|
Loading…
Reference in New Issue