projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6403f71
)
[clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD.
author
Frederic Cambus
<fred@statdns.com>
Fri, 17 Sep 2021 04:45:11 +0000
(
00:45
-0400)
committer
Brad Smith
<brad@comstyle.com>
Fri, 17 Sep 2021 04:45:11 +0000
(
00:45
-0400)
Differential Revision: https://reviews.llvm.org/D109349
clang/tools/scan-build/libexec/ccc-analyzer
patch
|
blob
|
history
diff --git
a/clang/tools/scan-build/libexec/ccc-analyzer
b/clang/tools/scan-build/libexec/ccc-analyzer
index
800f38b
..
ed0d4d3
100755
(executable)
--- 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++';