Commit c32a1613 authored by Carson McDonald's avatar Carson McDonald

Change the way that the DISABLE_GEMS flag is set.

parent 0410bb76
...@@ -37,7 +37,6 @@ module MRuby ...@@ -37,7 +37,6 @@ module MRuby
MRuby::Gem.current = self MRuby::Gem.current = self
@build.compilers.each do |compiler| @build.compilers.each do |compiler|
compiler.defines -= %w(DISABLE_GEMS)
compiler.include_paths << "#{dir}/include" compiler.include_paths << "#{dir}/include"
end end
MRuby::Build::COMMANDS.each do |command| MRuby::Build::COMMANDS.each do |command|
......
...@@ -83,7 +83,11 @@ module MRuby ...@@ -83,7 +83,11 @@ module MRuby
instance_eval(&block) instance_eval(&block)
compilers.each do |compiler| compilers.each do |compiler|
compiler.defines -= %w(DISABLE_GEMS) if respond_to?(:enable_gems?) && enable_gems? if respond_to?(:enable_gems?) && enable_gems?
compiler.defines -= %w(DISABLE_GEMS)
else
compiler.defines += %w(DISABLE_GEMS)
end
compiler.define_rules build_dir compiler.define_rules build_dir
end end
end end
......
...@@ -40,7 +40,7 @@ module MRuby ...@@ -40,7 +40,7 @@ module MRuby
@flags = [ENV['CFLAGS'] || []] @flags = [ENV['CFLAGS'] || []]
@source_exts = source_exts @source_exts = source_exts
@include_paths = ["#{build.root}/include"] @include_paths = ["#{build.root}/include"]
@defines = %w(DISABLE_GEMS) @defines = %w()
@option_include_path = '-I%s' @option_include_path = '-I%s'
@option_define = '-D%s' @option_define = '-D%s'
@compile_options = "%{flags} -MMD -o %{outfile} -c %{infile}" @compile_options = "%{flags} -MMD -o %{outfile} -c %{infile}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment