From b588f5d665aa01fe88921fe2ffb7256fdedfbfb0 Mon Sep 17 00:00:00 2001 From: Frederic Cambus Date: Fri, 17 Sep 2021 00:45:11 -0400 Subject: [PATCH] [clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD. Differential Revision: https://reviews.llvm.org/D109349 --- clang/tools/scan-build/libexec/ccc-analyzer | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/tools/scan-build/libexec/ccc-analyzer b/clang/tools/scan-build/libexec/ccc-analyzer index 800f38b..ed0d4d3 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++'; -- 2.7.4