Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[GH #853] Less failing llvm-gcc noise

  • Loading branch information...
commit c4ac9e89dfa3d24c53b51c92f48234c87da0df13 1 parent 132f7c7
@rurban rurban authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 config/auto/llvm.pm
View
7 config/auto/llvm.pm
@@ -112,10 +112,9 @@ sub runstep {
{
# Note: gcc and g++ with -c just skips over -emit-llvm and produce native code
# without -c: ld: warning: cannot find entry symbol 'mit-llvm'
- eval {
- system(qq{$cc -emit-llvm -O3 $fullcfile -c -o $bcfile});
- };
- if (!$@ and -e $bcfile and $self->_check_bcfile($bcfile)) {
+ my $err;
+ (undef,undef,$err) = capture_output( qq{$cc -emit-llvm -O3 $fullcfile -c -o $bcfile} );
+ if (!$err and -e $bcfile and $self->_check_bcfile($bcfile)) {
$conf->data->set( llvm_gcc => $cc );
last;
}
Please sign in to comment.
Something went wrong with that request. Please try again.