diff options
| author | Zachary Scott <[email protected]> | 2015-09-02 23:11:18 -0400 |
|---|---|---|
| committer | Zachary Scott <[email protected]> | 2015-09-03 01:02:53 -0400 |
| commit | bacb8268682e8d931a00e7894ed7904bc789d8c4 (patch) | |
| tree | 9b34d3025d195741cc5c028fad9dd7962beec04a /build_config.rb | |
| parent | cc0b28373a304541308b6386f4be15aedf30ce43 (diff) | |
| download | mruby-bacb8268682e8d931a00e7894ed7904bc789d8c4.tar.gz mruby-bacb8268682e8d931a00e7894ed7904bc789d8c4.zip | |
Add build_mrbtest after config block is evaluated
This allows us to add `enable_test` anywhere in a build target,
without having to worry about the order in which they are included.
Previously, there was a bug that occured when adding 'mruby-test' gem
to dependencies before additional gems.
Instead of adding the 'mruby-test' gem dependency manually to a test build,
we now only need to call `enable_test` in the target. This also allows us to
call `test_enabled?` downstream when running mruby tests ourselves.
/cc #2924
Diffstat (limited to 'build_config.rb')
| -rw-r--r-- | build_config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_config.rb b/build_config.rb index 34b92637c..d3c1ebc1f 100644 --- a/build_config.rb +++ b/build_config.rb @@ -114,9 +114,9 @@ MRuby::Build.new('test') do |conf| enable_debug conf.enable_bintest + conf.enable_test conf.gembox 'default' - conf.gem :core => "mruby-test" end # Define cross build settings |
