summaryrefslogtreecommitdiff
path: root/ext/json/ext/parser/extconf.rb
blob: b09f1223a2612c8ee03865ad2d5786f81f78df7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'mkmf'

unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3')
  $CFLAGS << ' -O3'
end
if CONFIG['CC'] =~ /gcc/
  $CFLAGS << ' -Wall'
  #unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb')
  #  $CFLAGS << ' -O0 -ggdb'
  #end
end

create_makefile 'json/ext/parser'