diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-02 07:53:27 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-02 07:53:27 +0900 |
| commit | ade9368510ad9002165503620baa0522ab706fba (patch) | |
| tree | 0bded0e92d77f22210fe30b29e6ea6c09dc06fea /lib | |
| parent | f68c0d092c90cc7426628b37570780d54a6c38ee (diff) | |
| parent | 5e814ea91286070fb3031f2cb1014658539eb1c7 (diff) | |
| download | mruby-ade9368510ad9002165503620baa0522ab706fba.tar.gz mruby-ade9368510ad9002165503620baa0522ab706fba.zip | |
Merge branch 'define-MRB_NO_GEMS-if-disable_libmruby-is-specified' of https://github.com/shuujii/mruby into shuujii-define-MRB_NO_GEMS-if-disable_libmruby-is-specified
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mruby/build.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/mruby/build.rb b/lib/mruby/build.rb index 2339a3c89..67267ab46 100644 --- a/lib/mruby/build.rb +++ b/lib/mruby/build.rb @@ -353,11 +353,7 @@ EOS def define_rules compilers.each do |compiler| - if respond_to?(:enable_gems?) && enable_gems? - compiler.defines -= %w(MRB_NO_GEMS) - else - compiler.defines += %w(MRB_NO_GEMS) - end + compiler.defines << "MRB_NO_GEMS" unless enable_gems? && libmruby_enabled? end [@cc, *(@cxx if cxx_exception_enabled?)].each do |compiler| compiler.define_rules(@build_dir, MRUBY_ROOT, @exts.object) |
