write out cache file when raising a build error exception

This commit is contained in:
josh committed 2013-08-12 14:40:46 -04:00
1 parent 289d27d41d
commit 711e96cec8
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -149,6 +149,7 @@ module Rscons
@targets.each do |target, info|
next if targets_processed.include?(target)
unless process_target.call(target)
cache.write
raise BuildError.new("Failed to build #{target}")
end
end