[PATCH] D45964: [Driver] Fix implicit config files from prefixed symlinks
Serge Pavlov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 24 10:56:48 PDT 2018
sepavloff accepted this revision.
sepavloff added a comment.
This revision is now accepted and ready to land.
Thank you for fixing this issue!
LGTM
================
Comment at: lib/Driver/Driver.cpp:132
ArrayRef<const char *> Args) {
- ClangNameParts = ToolChain::getTargetAndModeFromProgramName(ProgramName);
+ if (ClangNameParts.TargetPrefix.empty() && ClangNameParts.DriverMode == nullptr)
+ ClangNameParts = ToolChain::getTargetAndModeFromProgramName(ProgramName);
----------------
Maybe this check could be made a method of `ParsedClangName`, something like `isEmpty`?
Repository:
rC Clang
https://reviews.llvm.org/D45964
More information about the cfe-commits
mailing list