rework showing failed command - close #89
This commit is contained in:
1 parent
ab2fa1662f
commit
bf136e79f2
4 files changed
+48
-31
No files matched your search
@@ -80,13 +80,14 @@ module Rscons
|
||||
# Exit code.
|
||||
def build(options)
|
||||
begin
|
||||
Cache.instance["failed_commands"] = []
|
||||
@script.build
|
||||
Environment.environments.each do |env|
|
||||
env.process
|
||||
end
|
||||
0
|
||||
rescue BuildError => be
|
||||
$stderr.puts be
|
||||
Ansi.write($stderr, :red, be.message, :reset, "\n")
|
||||
1
|
||||
end
|
||||
end
|
||||
@@ -137,6 +138,7 @@ module Rscons
|
||||
options[:build_dir] ||= "build"
|
||||
options[:prefix] ||= "/usr/local"
|
||||
cache = Cache.instance
|
||||
cache["failed_commands"] = []
|
||||
cache["configuration_data"] = {}
|
||||
if project_name = @script.project_name
|
||||
Ansi.write($stdout, "Configuring ", :cyan, project_name, :reset, "...\n")
|
||||
|
||||
Reference in new issue
Block a user