diff options
| author | Alp Toker <alp@nuanti.com> | 2014-02-24 11:47:00 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2014-02-24 11:47:00 +0000 |
| commit | 0032b4d5195023513f1f91c1df555d8dfa36f4fb (patch) | |
| tree | 488bf23593faf43edd78b9e573c75913941ebdbe /openmp/runtime/tools | |
| parent | d77dfcb384974c734dc403dfd236a55de7b31666 (diff) | |
| download | bcm5719-llvm-0032b4d5195023513f1f91c1df555d8dfa36f4fb.tar.gz bcm5719-llvm-0032b4d5195023513f1f91c1df555d8dfa36f4fb.zip | |
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
Diffstat (limited to 'openmp/runtime/tools')
| -rwxr-xr-x | openmp/runtime/tools/check-tools.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openmp/runtime/tools/check-tools.pl b/openmp/runtime/tools/check-tools.pl index 1878ca53b17..c58817d61a6 100755 --- a/openmp/runtime/tools/check-tools.pl +++ b/openmp/runtime/tools/check-tools.pl @@ -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 ) { |

