[clang] 69deb13 - Use cc/c++ instead of gcc/g++ on FreeBSD.

Frederic Cambus via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 2 02:53:15 PST 2021


Author: Frederic Cambus
Date: 2021-12-02T11:52:40+01:00
New Revision: 69deb1371fd4cd2fbf37a82cbc21df79c6d51c70

URL: https://github.com/llvm/llvm-project/commit/69deb1371fd4cd2fbf37a82cbc21df79c6d51c70
DIFF: https://github.com/llvm/llvm-project/commit/69deb1371fd4cd2fbf37a82cbc21df79c6d51c70.diff

LOG: Use cc/c++ instead of gcc/g++ on FreeBSD.

All supported FreeBSD platforms do not have GCC in base anymore.

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/tools/scan-build/libexec/ccc-analyzer b/clang/tools/scan-build/libexec/ccc-analyzer
index 2a589a3a0ef5e..35b7a27126c58 100755
--- a/clang/tools/scan-build/libexec/ccc-analyzer
+++ b/clang/tools/scan-build/libexec/ccc-analyzer
@@ -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 {


        


More information about the cfe-commits mailing list