Commit 9968af45 authored by take_cheeze's avatar take_cheeze

allow command like "ccache gcc"

parent 873fae9f
......@@ -24,9 +24,17 @@ module MRuby
target
end
NotFoundCommands = {}
private
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment