From: David Chisnall Date: Wed, 29 Feb 2012 15:06:12 +0000 (+0000) Subject: Add -C when linking on Solaris so that the error messages are understandable by actua... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41d476d307973cefddeee5661b0573a2cf1b0f24;p=clang Add -C when linking on Solaris so that the error messages are understandable by actual humans. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151726 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index c5caaf024f..7e539e57dc 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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");