File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ load "#{mruby_root}/Rakefile"
2121
2222desc "compile all the binaries"
2323task :compile => [ :all ] do
24+ MRuby . each_target do |target |
25+ `#{ target . cc . command } --version`
26+ abort ( "Command #{ target . cc . command } for #{ target . name } is missing." ) unless $?. success?
27+ end
2428 %W( #{ mruby_root } /build/x86_64-pc-linux-gnu/bin/#{ APP_NAME } #{ mruby_root } /build/i686-pc-linux-gnu/#{ APP_NAME } ") . each do |bin |
2529 sh "strip --strip-unneeded #{ bin } " if File . exist? ( bin )
2630 end
Original file line number Diff line number Diff line change @@ -329,6 +329,11 @@ def rakefile
329329
330330desc "compile binary"
331331task :compile => [:all] do
332+
333+ MRuby.each_target do |target|
334+ `\# {target.cc.command} --version`
335+ abort("Command \# {target.cc.command} for \# {target.name} is missing.") unless $?.success?
336+ end
332337 %W(\# {mruby_root}/build/x86_64-pc-linux-gnu/bin/\# {APP_NAME} \# {mruby_root}/build/i686-pc-linux-gnu/\# {APP_NAME}").each do |bin|
333338 sh "strip --strip-unneeded \# {bin}" if File.exist?(bin)
334339 end
You can’t perform that action at this time.
0 commit comments