mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 16:06:39 +08:00
Add -C when linking on Solaris so that the error messages are understandable by actual humans.
llvm-svn: 151726
This commit is contained in:
@@ -4220,6 +4220,9 @@ void solaris::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
|
||||
ArgStringList CmdArgs;
|
||||
|
||||
// Demangle C++ names in errors
|
||||
CmdArgs.push_back("-C");
|
||||
|
||||
if ((!Args.hasArg(options::OPT_nostdlib)) &&
|
||||
(!Args.hasArg(options::OPT_shared))) {
|
||||
CmdArgs.push_back("-e");
|
||||
|
||||
Reference in New Issue
Block a user