mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
allow command like "ccache gcc"
This commit is contained in:
@@ -24,9 +24,17 @@ module MRuby
|
|||||||
target
|
target
|
||||||
end
|
end
|
||||||
|
|
||||||
|
NotFoundCommands = {}
|
||||||
|
|
||||||
private
|
private
|
||||||
def _run(options, params={})
|
def _run(options, params={})
|
||||||
sh build.filename(command) + ' ' + ( options % params )
|
return sh command + ' ' + ( options % params ) if NotFoundCommands.key? @command
|
||||||
|
begin
|
||||||
|
sh build.filename(command) + ' ' + ( options % params )
|
||||||
|
rescue RuntimeError
|
||||||
|
NotFoundCommands[@command] = true
|
||||||
|
_run options, params
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user