summaryrefslogtreecommitdiff
path: root/ext/json/ext/parser/extconf.rb
blob: 4791829df8c60cea6eb9af0627b219e7d48dc545 (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'
  if $DEBUG && !$CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb')
    $CFLAGS << ' -O0 -ggdb'
  end
end

create_makefile 'json/ext/parser'