diff options
| author | Carson McDonald <[email protected]> | 2013-01-28 08:54:27 -0500 |
|---|---|---|
| committer | Carson McDonald <[email protected]> | 2013-01-28 08:54:27 -0500 |
| commit | c32a16130f53816e13812d8f0d9cf0a19794f825 (patch) | |
| tree | 944018e0859fa4161139e3e60a2a41262b042d02 /tasks/mruby_build.rake | |
| parent | 0410bb7623a27ac427f190e3144c85b6446bec05 (diff) | |
| download | mruby-c32a16130f53816e13812d8f0d9cf0a19794f825.tar.gz mruby-c32a16130f53816e13812d8f0d9cf0a19794f825.zip | |
Change the way that the DISABLE_GEMS flag is set.
Diffstat (limited to 'tasks/mruby_build.rake')
| -rw-r--r-- | tasks/mruby_build.rake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tasks/mruby_build.rake b/tasks/mruby_build.rake index cd9f77fc4..645656417 100644 --- a/tasks/mruby_build.rake +++ b/tasks/mruby_build.rake @@ -83,7 +83,11 @@ module MRuby instance_eval(&block) 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 end end |
