File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ load "#{mruby_root}/Rakefile"
2222
2323desc "compile all the binaries"
2424task :compile => [ :all ] do
25+ load "#{ mruby_root } /test/mrbtest.rake"
26+ MRuby . each_target do |target |
27+ `#{ target . cc . command } --version`
28+ abort ( "Command #{ target . cc . command } for #{ target . name } is missing." ) unless $?. success?
29+ end
2530 %W( #{ mruby_root } /build/x86_64-pc-linux-gnu/bin/#{ APP_NAME } #{ mruby_root } /build/i686-pc-linux-gnu/#{ APP_NAME } ") . each do |bin |
2631 sh "strip --strip-unneeded #{ bin } " if File . exist? ( bin )
2732 end
Original file line number Diff line number Diff line change @@ -319,6 +319,11 @@ def is_in_a_docker?
319319
320320desc "compile binary"
321321task :compile => [:all] do
322+ load "\# {mruby_root}/test/mrbtest.rake"
323+ MRuby.each_target do |target|
324+ `\# {target.cc.command} --version`
325+ abort("Command \# {target.cc.command} for \# {target.name} is missing.") unless $?.success?
326+ end
322327 %W(\# {mruby_root}/build/x86_64-pc-linux-gnu/bin/\# {APP_NAME} \# {mruby_root}/build/i686-pc-linux-gnu/\# {APP_NAME}").each do |bin|
323328 sh "strip --strip-unneeded \# {bin}" if File.exist?(bin)
324329 end
You can’t perform that action at this time.
0 commit comments