[PATCH] D109349: [clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD.
Frederic Cambus via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 7 03:14:52 PDT 2021
fcambus created this revision.
fcambus added a reviewer: brad.
Herald added a subscriber: krytarowski.
fcambus requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The default was gcc/g++ for all platforms other than Darwin, but most OpenBSD platforms do not have GCC in base anymore.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109349
Files:
clang/tools/scan-build/libexec/ccc-analyzer
Index: clang/tools/scan-build/libexec/ccc-analyzer
===================================================================
--- clang/tools/scan-build/libexec/ccc-analyzer
+++ clang/tools/scan-build/libexec/ccc-analyzer
@@ -80,6 +80,9 @@
if (-x "/usr/bin/xcrun") {
$UseXCRUN = 1;
}
+} elsif (`uname -a` =~ m/OpenBSD/) {
+ $DefaultCCompiler = 'cc';
+ $DefaultCXXCompiler = 'c++';
} else {
$DefaultCCompiler = 'gcc';
$DefaultCXXCompiler = 'g++';
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109349.371021.patch
Type: text/x-patch
Size: 459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210907/1b78727a/attachment-0001.bin>
More information about the cfe-commits
mailing list