Checks using the result of getCompiler() will fail to identify the compiler
correctly if CC is a symlink path (ie /usr/bin/cc).
Use "CC" -v to determine the actual compiler type in these cases.
Differential D16488
Fix getCompiler in unit testing framework on compiler symlinks fjricci on Jan 22 2016, 2:24 PM. Authored by
Details Checks using the result of getCompiler() will fail to identify the compiler Use "CC" -v to determine the actual compiler type in these cases.
Diff Detail Event Timeline
Comment Actions This caused a regression when the compiler was specified without a full path (I've fixed it in r259484, this is just an FYI). Also, please put @lldb-commits (not LLVM) as a subscriber on the diff next time. cheers, |
This works, but I think it could be better. It sounds like what you really want to do is resolve the symlink. What about this: