From 2889e10d0d9ecb0339ec03d71416718580433092 Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Tue, 31 May 2016 08:12:48 +0200
Subject: Implement allow_warnings SCons flag for Windows

Test-Information:

Build failed correctly on error on Windows 8 with Visual
Studio 2013.

Change-Id: I1afc7a8a4cf0449057959638709c80c7ded8a5a6

diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot
index df15937..5fc99f3 100644
--- a/BuildTools/SCons/SConscript.boot
+++ b/BuildTools/SCons/SConscript.boot
@@ -307,6 +307,8 @@ if env["PLATFORM"] == "posix" and platform.machine() in ["x86_64", "amd64"] :
 # Warnings
 if env["PLATFORM"] == "win32" :
     env.Append(CXXFLAGS = ["/wd4068"])
+    if not env.get("allow_warnings", "False") :
+        env.Append(CXXFLAGS = ["/WX"])
 elif env["PLATFORM"] == "hpux" :
     # HP-UX gives a flood of minor warnings if this is enabled
     #env.Append(CXXFLAGS = ["+w"])
-- 
cgit v0.10.2-6-g49f6