Sha256: 584a51984c8a4e3f8617a7e3fdec832f057494236850f9fa08bbc851be63ec80
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
require 'mkmf' require 'rbconfig' if CONFIG['CC'] =~ /gcc/ $CFLAGS << ' -Wall' if ENV['DEBUG'] $CFLAGS << ' -O0 -ggdb' else $CFLAGS << ' -O3' end else $CFLAGS << ' -O3' end create_makefile 'amatch_ext' # WTF, is this really the only way to get a decent output out of mkmf? mf = File.read 'Makefile' if mf.sub!(/V = 0/, 'V = 1') warn "Rewriting the generated Makefile to get my compiler output displayed..." File.open('Makefile', 'w') { |f| f.write mf } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amatch-0.2.11 | ext/extconf.rb |