This is a revision of https://reviews.llvm.org/D36842 . I don't really know what I'm doing, but this appears to work for my x86 dev build (haven't tried the x64 repro yet).
Diff Detail
Event Timeline
This looks okay, but since you already include all your include paths in INCLUDE, we should be able to ignore this -- I've removed it in my working copy.
Now, I'm trying to fix the linkPath issue. Looks like duplicated logic already available in the base class, so I'm working on fixing that now.
Don abandoned his patch as not being a good approach, so I'm saying goodbye to this one too. I have a new, minimally intrusive patch.
lib/Driver/ToolChains/MSVC.cpp | ||
---|---|---|
135 | Having a while loop going up the directory tree stating around on every compiler invocation for supporting a fairly narrow use case seems a bit unfortunate. Maybe we could instead add a flag (or just a cc1 flag, even) to override the check instead? |
Yes, please ignore this patch -- it was just for brainstorming... ;-)
lib/Driver/ToolChains/MSVC.cpp | ||
---|---|---|
135 | Agreed, this patch was abandoned... |
Having a while loop going up the directory tree stating around on every compiler invocation for supporting a fairly narrow use case seems a bit unfortunate. Maybe we could instead add a flag (or just a cc1 flag, even) to override the check instead?