ports/devel/llvm12/files/patch-clang_tools_scan-build_libexec_ccc-analyzer
Brooks Davis 85e3df44bd Welcome LLVM 12 (12.0.0rc2) to the tree
Notable *port* changes (vs devel/llvm11):
 - Switch to single llvm-project distfile.  This simplifies the port
   and support for the old style build process is rotting upstream
   after the mono-repo conversion.
 - Disable libedit dependency in libLLVM (still used by LLDB).  This
   is one small step toward a dependency-less clang.
 - LLDB docs are disabled due to issues finding python includes when
   autogenerating API docs.

Sponsored by:	 DARPA
2021-03-05 01:47:32 +00:00

12 lines
346 B
Text

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