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

Differential Revision: https://reviews.llvm.org/D109349
This commit is contained in:
Frederic Cambus 2021-09-17 00:45:11 -04:00 committed by Brad Smith
parent 6403f716f1
commit b588f5d665
1 changed files with 3 additions and 0 deletions

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++';