[clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD.

Differential Revision: https://reviews.llvm.org/D109349

(cherry picked from commit b588f5d665)
This commit is contained in:
Frederic Cambus 2021-09-17 00:45:11 -04:00 committed by Tom Stellard
parent 08642a395f
commit dda88bfc06

View File

@ -80,6 +80,9 @@ if (`uname -a` =~ m/Darwin/) {
if (-x "/usr/bin/xcrun") {
$UseXCRUN = 1;
}
} elsif (`uname -a` =~ m/OpenBSD/) {
$DefaultCCompiler = 'cc';
$DefaultCXXCompiler = 'c++';
} else {
$DefaultCCompiler = 'gcc';
$DefaultCXXCompiler = 'g++';