[cfe-commits] r152583 - in /cfe/trunk: lib/Driver/Tools.cpp test/Driver/linker-opts.c
Bill Wendling
isanbard at gmail.com
Mon Mar 19 11:00:24 PDT 2012
On Mar 19, 2012, at 8:07 AM, Nico Weber <thakis at chromium.org> wrote:
> Hi Bill,
>
>> @@ -106,9 +107,9 @@
>> CmdArgs.push_back(".");
>> } else {
>> CmdArgs.push_back(ArgName);
>> - CmdArgs.push_back(Args.MakeArgString(Dirs.substr(0, Delim)));
>> + CmdArgs.push_back(Args.MakeArgString(Dirs.split(Delim).first));
>> }
>> - Dirs = Dirs.substr(Delim + 1);
>> + Dirs = Dirs.split(Delim).second;
>
> This broke a :-separated CPLUS_INCLUDE_PATH:
>
> $ CPLUS_INCLUDE_PATH="/foo:/bar"
> third_party/llvm-build/Release+Asserts/bin/clang -v -c test.cc
> # ...
> clang -cc1 -cxx-isystem /foo:/bar ...
> # ...
>
> I landed a fix in r153034 (I just reverted the two lines you changed
> above, since they look unrelated to the change description, and
> changing them made no tests fail).
>
Hi Nico,
That seems odd. Maybe it's a bug in StringRef? Anyway, sorry about the breakage and thanks for reverting the patch. :)
-bw
More information about the cfe-commits
mailing list