diff options
author | Frederic Cambus <fred@statdns.com> | 2021-09-17 00:45:11 -0400 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2021-09-20 11:19:39 -0700 |
commit | dda88bfc06b5d9521d0a2ea9441f3eff75aa7fd4 (patch) | |
tree | 572804c35a871b02b3fa4559c5ac50e45e27a94c | |
parent | 08642a395f235b9186d4479c7a2307f9e8bf0bba (diff) | |
download | llvm-dda88bfc06b5d9521d0a2ea9441f3eff75aa7fd4.tar.gz |
[clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD.
Differential Revision: https://reviews.llvm.org/D109349
(cherry picked from commit b588f5d665aa01fe88921fe2ffb7256fdedfbfb0)
-rwxr-xr-x | clang/tools/scan-build/libexec/ccc-analyzer | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/tools/scan-build/libexec/ccc-analyzer b/clang/tools/scan-build/libexec/ccc-analyzer index 800f38b5ba24..ed0d4d3d73f3 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++'; |