Permalink
Browse files

Merge remote-tracking branch 'origin/rurban/llvm-gh853' into rurban/o…

…ps2c_llvm
  • Loading branch information...
2 parents 7dde84d + c4ac9e8 commit cc85795429d77212b0cce1155e587d147dbf6e01 Reini Urban committed Oct 3, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 config/auto/llvm.pm
View
@@ -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;
}

0 comments on commit cc85795

Please sign in to comment.