Support redirecting standard output using the Command builder - close #28

This commit is contained in:
josh committed 2017-05-29 12:50:34 -04:00
1 parent 8cbb9fa30e
commit 43df46018c
4 files changed
+34 -5

No files matched your search

+5 -1
View File
@@ -25,7 +25,11 @@ module Rscons
})
command = env.build_command("${CMD}", vars)
cmd_desc = vars["CMD_DESC"] || "Command"
standard_threaded_build("#{cmd_desc} #{target}", target, command, sources, env, cache)
options = {}
if vars["CMD_STDOUT"]
options[:stdout] = env.expand_varref("${CMD_STDOUT}", vars)
end
standard_threaded_build("#{cmd_desc} #{target}", target, command, sources, env, cache, options)
end
# Finalize a build.