use new Builder#run signature for Command builder

This commit is contained in:
Josh Holtrop 2017-05-25 17:06:34 -04:00
parent 05bbea6fa1
commit b5826bd7f4

View File

@ -17,7 +17,8 @@ module Rscons
# @return [String, ThreadedCommand] # @return [String, ThreadedCommand]
# Target file name if target is up to date or a {ThreadedCommand} # Target file name if target is up to date or a {ThreadedCommand}
# to execute to build the target. # to execute to build the target.
def run(target, sources, cache, env, vars) def run(options)
target, sources, cache, env, vars = options.values_at(:target, :sources, :cache, :env, :vars)
vars = vars.merge({ vars = vars.merge({
"_TARGET" => target, "_TARGET" => target,
"_SOURCES" => sources, "_SOURCES" => sources,