[clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD.
authorFrederic Cambus <fred@statdns.com>
Fri, 17 Sep 2021 04:45:11 +0000 (00:45 -0400)
committerBrad Smith <brad@comstyle.com>
Fri, 17 Sep 2021 04:45:11 +0000 (00:45 -0400)
Differential Revision: https://reviews.llvm.org/D109349

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

index 800f38b..ed0d4d3 100755 (executable)
@@ -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++';