diff options
| author | Yuichiro MASUI <[email protected]> | 2013-01-21 14:05:42 +0900 |
|---|---|---|
| committer | Yuichiro MASUI <[email protected]> | 2013-01-21 14:05:42 +0900 |
| commit | 117e2ec06544e02511a2b5d2164edb00908ebab2 (patch) | |
| tree | aafad33075fbf614a9a9fe2bce84e8f435e6ef4c /tasks/mrbgem_spec.rake | |
| parent | 0defb59053ccd1e6c8637149329989ae81e46c71 (diff) | |
| download | mruby-117e2ec06544e02511a2b5d2164edb00908ebab2.tar.gz mruby-117e2ec06544e02511a2b5d2164edb00908ebab2.zip | |
Export build flags to lib/libmruby.flags.mak
Diffstat (limited to 'tasks/mrbgem_spec.rake')
| -rw-r--r-- | tasks/mrbgem_spec.rake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tasks/mrbgem_spec.rake b/tasks/mrbgem_spec.rake index 439b2c7a8..138b3f1f1 100644 --- a/tasks/mrbgem_spec.rake +++ b/tasks/mrbgem_spec.rake @@ -35,15 +35,15 @@ module MRuby def setup MRuby::Gem.current = self - MRuby::Build::COMMANDS.each do |command| - instance_variable_set("@#{command}", @build.send(command).clone) - end - @linker = LinkerConfig.new([], [], []) - compilers.each do |compiler| + @build.compilers.each do |compiler| compiler.defines -= %w(DISABLE_GEMS) compiler.include_paths << "#{dir}/include" end + MRuby::Build::COMMANDS.each do |command| + instance_variable_set("@#{command}", @build.send(command).clone) + end + @linker = LinkerConfig.new([], [], []) @rbfiles = Dir.glob("#{dir}/mrblib/*.rb") @objs = Dir.glob("#{dir}/src/*.{c,cpp,m,asm,S}").map { |f| objfile(f.relative_path_from(@dir).to_s.pathmap("#{build_dir}/%X")) } |
