summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mrbc
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-12-05 14:08:29 +0900
committerGitHub <[email protected]>2020-12-05 14:08:29 +0900
commit63d82142a8d3915d977fd97fc2ee82b5951065ed (patch)
treec501616276d35505525aa3532361552d3ed84c3b /mrbgems/mruby-bin-mrbc
parent00d1fd0e6fee6cef2565c4a3b2dd428b0d59f4bf (diff)
parent73b4152574f0dd6747488662751f59f8c4c0b50d (diff)
downloadmruby-63d82142a8d3915d977fd97fc2ee82b5951065ed.tar.gz
mruby-63d82142a8d3915d977fd97fc2ee82b5951065ed.zip
Merge pull request #5212 from shuujii/make-it-possible-that-libmruby.a-is-not-created
Make it possible that `libmruby.a` is not created
Diffstat (limited to 'mrbgems/mruby-bin-mrbc')
-rw-r--r--mrbgems/mruby-bin-mrbc/mrbgem.rake7
1 files changed, 3 insertions, 4 deletions
diff --git a/mrbgems/mruby-bin-mrbc/mrbgem.rake b/mrbgems/mruby-bin-mrbc/mrbgem.rake
index 48b67aedb..67200b3f0 100644
--- a/mrbgems/mruby-bin-mrbc/mrbgem.rake
+++ b/mrbgems/mruby-bin-mrbc/mrbgem.rake
@@ -2,15 +2,14 @@ MRuby::Gem::Specification.new 'mruby-bin-mrbc' do |spec|
spec.license = 'MIT'
spec.author = 'mruby developers'
spec.summary = 'mruby compiler executable'
-
spec.add_dependency 'mruby-compiler', :core => 'mruby-compiler'
exec = exefile("#{build.build_dir}/bin/mrbc")
- mrbc_objs = Dir.glob("#{spec.dir}/tools/mrbc/*.c").map { |f| objfile(f.pathmap("#{spec.build_dir}/tools/mrbc/%n")) }.flatten
+ mrbc_objs = Dir.glob("#{spec.dir}/tools/mrbc/*.c").map { |f| objfile(f.pathmap("#{spec.build_dir}/tools/mrbc/%n")) }
- file exec => mrbc_objs + [build.libmruby_core_static] do |t|
+ file exec => mrbc_objs << build.libmruby_core_static do |t|
build.linker.run t.name, t.prerequisites
end
- build.bins << 'mrbc' unless build.bins.find { |v| v == 'mrbc' }
+ build.bins << 'mrbc'
end