зеркало из https://github.com/microsoft/clang-1.git
[analyzer] scan-build: If we are on MacOS, use clang as the default
compiler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147644 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
f5c5f89a10
Коммит
dd40b84040
|
@ -27,17 +27,27 @@ use Text::ParseWords;
|
|||
|
||||
my $Compiler;
|
||||
my $Clang;
|
||||
my $DefaultCCompiler;
|
||||
my $DefaultCXXCompiler;
|
||||
|
||||
if (`uname -a` =~ m/Darwin/) {
|
||||
$DefaultCCompiler = 'clang';
|
||||
$DefaultCXXCompiler = 'clang++';
|
||||
} else {
|
||||
$DefaultCCompiler = 'gcc';
|
||||
$DefaultCXXCompiler = 'g++';
|
||||
}
|
||||
|
||||
if ($FindBin::Script =~ /c\+\+-analyzer/) {
|
||||
$Compiler = $ENV{'CCC_CXX'};
|
||||
if (!defined $Compiler) { $Compiler = "g++"; }
|
||||
if (!defined $Compiler) { $Compiler = $DefaultCXXCompiler; }
|
||||
|
||||
$Clang = $ENV{'CLANG_CXX'};
|
||||
if (!defined $Clang) { $Clang = 'clang++'; }
|
||||
}
|
||||
else {
|
||||
$Compiler = $ENV{'CCC_CC'};
|
||||
if (!defined $Compiler) { $Compiler = "gcc"; }
|
||||
if (!defined $Compiler) { $Compiler = $DefaultCCompiler; }
|
||||
|
||||
$Clang = $ENV{'CLANG'};
|
||||
if (!defined $Clang) { $Clang = 'clang'; }
|
||||
|
|
|
@ -27,17 +27,27 @@ use Text::ParseWords;
|
|||
|
||||
my $Compiler;
|
||||
my $Clang;
|
||||
my $DefaultCCompiler;
|
||||
my $DefaultCXXCompiler;
|
||||
|
||||
if (`uname -a` =~ m/Darwin/) {
|
||||
$DefaultCCompiler = 'clang';
|
||||
$DefaultCXXCompiler = 'clang++';
|
||||
} else {
|
||||
$DefaultCCompiler = 'gcc';
|
||||
$DefaultCXXCompiler = 'g++';
|
||||
}
|
||||
|
||||
if ($FindBin::Script =~ /c\+\+-analyzer/) {
|
||||
$Compiler = $ENV{'CCC_CXX'};
|
||||
if (!defined $Compiler) { $Compiler = "g++"; }
|
||||
if (!defined $Compiler) { $Compiler = $DefaultCXXCompiler; }
|
||||
|
||||
$Clang = $ENV{'CLANG_CXX'};
|
||||
if (!defined $Clang) { $Clang = 'clang++'; }
|
||||
}
|
||||
else {
|
||||
$Compiler = $ENV{'CCC_CC'};
|
||||
if (!defined $Compiler) { $Compiler = "gcc"; }
|
||||
if (!defined $Compiler) { $Compiler = $DefaultCCompiler; }
|
||||
|
||||
$Clang = $ENV{'CLANG'};
|
||||
if (!defined $Clang) { $Clang = 'clang'; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче