build_config gets more flexibility

This commit is contained in:
Yuichiro MASUI
2013-01-21 12:46:17 +09:00
parent 8e86ff2283
commit 0defb59053
8 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ MRuby.each_target do
if bins.find { |s| s.to_s == 'mruby' }
exec = exefile("#{build_dir}/bin/mruby")
objs = Dir.glob("#{dir}/*.c").map { |f| objfile(f.pathmap("#{build_dir}/%X")) }
objs = Dir.glob("#{dir}/*.c").map { |f| objfile(f.pathmap("#{build_dir}/%X")) }.flatten
file exec => objs + [libfile("#{build_dir}/lib/libmruby")] do |t|
gem_flags = gems.map { |g| g.linker.flags }