summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Rakefile3
-rw-r--r--doc/compile/README.md2
-rw-r--r--tasks/mrbgems.rake2
3 files changed, 5 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 776768045..fd0336033 100644
--- a/Rakefile
+++ b/Rakefile
@@ -8,7 +8,8 @@ load 'tasks/mruby_gem_spec.rake'
##############################
# compile flags
-load File.expand_path(ENV['CONFIG'] || './build_config.rb')
+MRUBY_CONFIG = File.expand_path(ENV['MRUBY_CONFIG'] || './build_config.rb')
+load MRUBY_CONFIG
load 'tasks/rules.rake'
load 'src/mruby_core.rake'
diff --git a/doc/compile/README.md b/doc/compile/README.md
index cec70e68b..168417984 100644
--- a/doc/compile/README.md
+++ b/doc/compile/README.md
@@ -83,7 +83,7 @@ MRuby::CrossBuild.new('i386') do |conf|
end
```
-You can configurate the same options as for a normal build.
+You can configurate the same options as for a normal build. You can specified your own build_config.rb with *$MRUBY_CONFIG*.
## Build process
diff --git a/tasks/mrbgems.rake b/tasks/mrbgems.rake
index 356e40369..07e412b53 100644
--- a/tasks/mrbgems.rake
+++ b/tasks/mrbgems.rake
@@ -29,5 +29,7 @@ mrb_init_mrbgems(mrb_state *mrb) {
__EOF__
end
end
+
+ file "#{build_dir}/mrbgems/gem_init.c" => MRUBY_CONFIG
end
end