patch-clang_tools_scan-build_libexec_ccc-analyzer 346 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
--- clang/tools/scan-build/libexec/ccc-analyzer.orig
+++ clang/tools/scan-build/libexec/ccc-analyzer
@@ -81,6 +81,9 @@
   if (-x "/usr/bin/xcrun") {
     $UseXCRUN = 1;
   }
+} elsif (`uname -s` eq "FreeBSD\n") {
+  $DefaultCCompiler = 'cc';
+  $DefaultCXXCompiler = 'c++';
 } else {
   $DefaultCCompiler = 'gcc';
   $DefaultCXXCompiler = 'g++';