Skip to content

Commit b588f5d

Browse files
fcambusbrad0
authored andcommitted
[clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD.
Differential Revision: https://reviews.llvm.org/D109349
1 parent 6403f71 commit b588f5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/tools/scan-build/libexec/ccc-analyzer

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ if (`uname -a` =~ m/Darwin/) {
8080
if (-x "/usr/bin/xcrun") {
8181
$UseXCRUN = 1;
8282
}
83+
} elsif (`uname -a` =~ m/OpenBSD/) {
84+
$DefaultCCompiler = 'cc';
85+
$DefaultCXXCompiler = 'c++';
8386
} else {
8487
$DefaultCCompiler = 'gcc';
8588
$DefaultCXXCompiler = 'g++';

0 commit comments

Comments
 (0)