Skip to content

Commit

Permalink
[config] default optimize to -O3 on gcc and msvc
Browse files Browse the repository at this point in the history
on win64 strawberry perl and msvc (--cc=cl) it would be empty otherwise
  • Loading branch information
Reini Urban committed Jan 26, 2015
1 parent 190d07c commit 2cb5b29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/init/optimize.pm
Expand Up @@ -53,6 +53,9 @@ sub runstep {
if ( defined $gccversion and $gccversion > 3.3 ) {
$optimization_level =~ s/-mcpu=/-march=/;
}
if (!$optimization_level) {
$optimization_level = '-O3' if $gccversion or $conf->data->get( 'msvcversion' );
}
}
else {
# Otherwise, use the command-line verbatim, e.g. '--optimize=O3'
Expand Down

0 comments on commit 2cb5b29

Please sign in to comment.