add Rscons.command_executer to determine command executer

Use "env" to execute commands when in MSYS on Windows
This commit is contained in:
josh committed 2014-06-12 11:07:09 -04:00
1 parent ef18c9da35
commit 9f75ea9d21
3 files changed
+74 -1

No files matched your search

+1 -1
View File
@@ -245,7 +245,7 @@ module Rscons
end
env_args = options[:env] ? [options[:env]] : []
options_args = options[:options] ? [options[:options]] : []
system(*env_args, *command, *options_args).tap do |result|
system(*env_args, *Rscons.command_executer, *command, *options_args).tap do |result|
unless result or @echo == :command
$stdout.write "Failed command was: "
print_command.call