Skip to content

Commit

Permalink
Use cc/c++ instead of gcc/g++ on FreeBSD.
Browse files Browse the repository at this point in the history
All supported FreeBSD platforms do not have GCC in base anymore.

Differential Revision: https://reviews.llvm.org/D114530
  • Loading branch information
fcambus committed Dec 2, 2021
1 parent 73c50cc commit 69deb13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/tools/scan-build/libexec/ccc-analyzer
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if (`uname -s` =~ m/Darwin/) {
if (-x "/usr/bin/xcrun") {
$UseXCRUN = 1;
}
} elsif (`uname -s` =~ m/OpenBSD/) {
} elsif (`uname -s` =~ m/(FreeBSD|OpenBSD)/) {
$DefaultCCompiler = 'cc';
$DefaultCXXCompiler = 'c++';
} else {
Expand Down

0 comments on commit 69deb13

Please sign in to comment.