commit 7b521042c393c183abc37408bff1159e4be2353c
parent 615e39fc554ebe0ebb19c57fae2526a8eeadd098
Author: cfillion <cfillion@users.noreply.github.com>
Date: Thu, 30 Jun 2016 19:47:40 -0700
win32: prevent trying to build without VS's environment
so that running rake in vanilla cmd.exe won't reset tup builds because
of environement variable mismatch
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/Rakefile b/Rakefile
@@ -11,6 +11,10 @@ task :build, [:variants] do |_, args|
vars = Array(args[:variants]) + args.extras
vars.reject &:empty?
+ if Gem.win_platform? && ENV['VCINSTALLDIR'].nil?
+ raise "VCINSTALLDIR is unset. Is this Developer Command Prompt for Visual Studio?"
+ end
+
sh 'tup', *vars, :verbose => false
end