The code wasn't taking the architecture-specific subdirectory into account.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Nico asked about tests. This whole thing landed (r297851) without tests, and I'm not sure it's worth the effort adding one for this :-/
Comment Actions
I'd rather not hardcode all the msvc archs. IMO we should just look up one level and check if that's called bin, and continue if so. I think I had:
bool IsBin = llvm::sys::path::filename(PathEntry).compare_lower("bin"); if (!IsBin) { PathEntry = llvm::sys::path::parent_path(PathEntry); IsBin = llvm::sys::path::filename(TestPath).compare_lower("bin"); } if (IsBin) { ...
The compare_lower is also a fix, because my path looks like ".../VC/Bin".