Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/rurban/llvm-gh853' into rurban/o…
Browse files Browse the repository at this point in the history
…ps2c_llvm
  • Loading branch information
Reini Urban committed Oct 3, 2012
2 parents 7dde84d + c4ac9e8 commit cc85795
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions config/auto/llvm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cc85795

Please sign in to comment.