[clang] b588f5d - [clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD.
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 16 21:50:55 PDT 2021
Author: Frederic Cambus
Date: 2021-09-17T00:45:11-04:00
New Revision: b588f5d665aa01fe88921fe2ffb7256fdedfbfb0
URL: https://github.com/llvm/llvm-project/commit/b588f5d665aa01fe88921fe2ffb7256fdedfbfb0
DIFF: https://github.com/llvm/llvm-project/commit/b588f5d665aa01fe88921fe2ffb7256fdedfbfb0.diff
LOG: [clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD.
Differential Revision: https://reviews.llvm.org/D109349
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 800f38b5ba241..ed0d4d3d73f38 100755
--- a/clang/tools/scan-build/libexec/ccc-analyzer
+++ b/clang/tools/scan-build/libexec/ccc-analyzer
@@ -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++';
More information about the cfe-commits
mailing list