Skip to content

Commit

Permalink
fix compiler flag cleanup for mingw/mswin
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed Jan 10, 2011
1 parent 85856dc commit 576c2c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/amalgalite/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#
# warnflags and debugflags appear to be 1.9 constructs
#
if CONFIG['arch'] =~ /(mswin|mingw)/i then
CONFIG['debugflags'] = CONFIG['debugflags'].gsub(/-g/,'') if CONFIG['debugflags']
CONFIG['warnflags'] = CONFIG['warnflags'].gsub(/-Wall/,'') if CONFIG['warnflags']
if Config::CONFIG['arch'] =~ /(mswin|mingw)/i then
Config::CONFIG['debugflags'] = Config::CONFIG['debugflags'].gsub(/-g/,'') if Config::CONFIG['debugflags']
Config::CONFIG['warnflags'] = Config::CONFIG['warnflags'].gsub(/-Wall/,'') if Config::CONFIG['warnflags']
end
subdir = RUBY_VERSION.sub(/\.\d$/,'')
create_makefile("amalgalite/#{subdir}/amalgalite3")

0 comments on commit 576c2c5

Please sign in to comment.