Skip to content

Commit

Permalink
import JSON 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed May 19, 2011
1 parent 3bcdccc commit 0d886ca
Show file tree
Hide file tree
Showing 27 changed files with 9,092 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/json/extconf.rb
@@ -0,0 +1,3 @@
require 'mkmf'
create_makefile('json')

20 changes: 20 additions & 0 deletions ext/json/generator/extconf.rb
@@ -0,0 +1,20 @@
require 'mkmf'
require 'rbconfig'

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

if RUBY_VERSION < "1.9"
have_header("re.h")
else
have_header("ruby/re.h")
have_header("ruby/encoding.h")
end
create_makefile 'json/ext/generator'

0 comments on commit 0d886ca

Please sign in to comment.