From 8a3f6f5f15e5eb9a7af867ff82384a6b2e4ed181 Mon Sep 17 00:00:00 2001 From: Andre Richter Date: Sun, 17 Jun 2018 13:20:25 +0200 Subject: [PATCH] utils: Exit early on build failure --- utils/make_all.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/make_all.rb b/utils/make_all.rb index 0eb0bf77..ef1681f2 100644 --- a/utils/make_all.rb +++ b/utils/make_all.rb @@ -8,6 +8,9 @@ crates.each do |x| x = File.dirname(x) puts "\n\n" + x.to_s + "\n\n" Dir.chdir(x) do - `make` + if system('make') != 0 + puts "\n\nBuild failed!" + exit(1) # Exit with error code + end end end