Sha256: d1520f7032c7724ee8cf91b81e3c7976500333640f098d517096a10b4cdb8d5c
Contents?: true
Size: 953 Bytes
Versions: 4
Compression:
Stored size: 953 Bytes
Contents
require 'mkmf' require 'libv8' have_library('pthread') have_library('objc') if RUBY_PLATFORM =~ /darwin/ $CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall" $CPPFLAGS += " -g" unless $CPPFLAGS.split.include? "-g" $CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic" $CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or RUBY_PLATFORM =~ /darwin/ $CPPFLAGS += " -std=c++0x" $CPPFLAGS += " -fpermissive" $LDFLAGS.insert 0, " -stdlib=libstdc++ " if RUBY_PLATFORM =~ /darwin/ if ENV['CXX'] puts "SETTING CXX" CONFIG['CXX'] = ENV['CXX'] end CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/ if CONFIG['warnflags'] CONFIG['warnflags'].gsub!('-Wdeclaration-after-statement', '') CONFIG['warnflags'].gsub!('-Wimplicit-function-declaration', '') end if enable_config('debug') CONFIG['debugflags'] << ' -ggdb3 -O0' end Libv8.configure_makefile create_makefile 'mini_racer_extension'
Version data entries
4 entries across 4 versions & 1 rubygems