Change scan-build on the Mac to support the scenario where scan-build is installed in
$TOOLCHAIN/usr/local/bin/ but clang itself is installed in $TOOLCHAIN/usr/bin/.
rdar://problem/48914634
Differential D59406
[analyzer] Teach scan-build to find /usr/bin/clang when installed in /usr/local/bin/ dcoughlin on Mar 14 2019, 9:30 PM. Authored by
Details Change scan-build on the Mac to support the scenario where scan-build is installed in rdar://problem/48914634
Diff Detail
Event TimelineComment Actions This should indeed take care of our relatively tricky macOS use-case! I'm a bit worried for unexpected consequences on some of the more exotic linux setups - who knows what ../.. is supposed to contain. Maybe restrict this lookup to Darwin somehow? - And i guess let's eventually consider supporting $PATH :) |