Ticket #2089: llvm.no.ccflags.diff

File llvm.no.ccflags.diff, 0.6 KB (added by jkeenan, 4 years ago)

Don't add LLVM's ccflags to Parrot's

  • config/auto/llvm.pm

    diff --git a/config/auto/llvm.pm b/config/auto/llvm.pm
    index e1450e5..f47b972 100644
    a b  
    5050    my $rv = $self->version_check($conf, \@output, $verbose); 
    5151    return 1 unless $rv; 
    5252 
    53     #  Find cc flags 
    54     my $ccflags = `$llvm_config --cflags`; 
    55     chomp $ccflags; 
    56     # do not include optimization level 
    57     $ccflags =~ s/-O[^ ]*//; 
    58     $conf->data->add( ' ', ccflags => $ccflags ); 
    59  
    6053    # Find lib 
    6154    my $ldd = `ldd "$llvm_bindir/lli"`; 
    6255    if ($ldd =~ /(libLLVM[^ ]+)(.*)/m){