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++'; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits