clang build fix: don't check for gnu tools by default

gcc/g++ don't exist on modern OS X development environments so the failed
checks for gcc were causing the build to break even with 'make compiler=clang'.

(The rationale for the check refers to a file 'touch-test.c' which no longer
exists in the codebase.)

llvm-svn: 202027
This commit is contained in:
Alp Toker 2014-02-24 11:47:00 +00:00
parent d77dfcb384
commit 0032b4d519
1 changed files with 4 additions and 4 deletions

View File

@ -427,13 +427,13 @@ if ( $intel ) {
};
}; # if
if ( $target_os eq "lin" or $target_os eq "mac" ) {
# check for gnu tools by default because touch-test.c is compiled with them.
push( @versions, [ "GNU C Compiler", get_gnu_compiler_version( $gnu_compilers->{ $target_os }->{ c } ) ] );
push( @versions, [ "GNU C++ Compiler", get_gnu_compiler_version( $gnu_compilers->{ $target_os }->{ cpp } ) ] );
if ( $clang ) {
push( @versions, [ "Clang C Compiler", get_clang_compiler_version( $clang_compilers->{ $target_os }->{ c } ) ] );
push( @versions, [ "Clang C++ Compiler", get_clang_compiler_version( $clang_compilers->{ $target_os }->{ cpp } ) ] );
};
} else {
push( @versions, [ "GNU C Compiler", get_gnu_compiler_version( $gnu_compilers->{ $target_os }->{ c } ) ] );
push( @versions, [ "GNU C++ Compiler", get_gnu_compiler_version( $gnu_compilers->{ $target_os }->{ cpp } ) ] );
}; # if
# if intel fortran has been checked then gnu fortran is unnecessary
# also, if user specifies clang as build compiler, then gfortran is assumed fortran compiler
if ( $fortran and not $intel ) {