Skip to content

Commit

Permalink
Honor RbConfig::MAKEFILE_CONFIG['CFLAGS']
Browse files Browse the repository at this point in the history
  • Loading branch information
eagletmt committed Sep 14, 2013
1 parent 0493c08 commit e602dda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/byebug/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
end

if RbConfig::MAKEFILE_CONFIG['CC'] =~ /gcc/
$CFLAGS = '-Wall -Werror'
$CFLAGS ||= ''
$CFLAGS += ' -Wall -Werror'
$CFLAGS += ' -gdwarf-2 -g3' if ENV['debug']
end

Expand Down

0 comments on commit e602dda

Please sign in to comment.