From d0836aeb02594c322a9915041e4fe46077a91b7b Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Mon, 1 Oct 2018 12:20:42 +0200 Subject: Pass /bigobj when building on Windows Debug builds building with /MDd will otherwise fail on Windows with MSVS 2015. Test-Information: Builds successfully with /MDd flag on Windows using MSVS 2015. Change-Id: I9ac7e9408f09354025bb39cb5642efce686d11f0 diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot index 80831a1..411fb7d 100644 --- a/BuildTools/SCons/SConscript.boot +++ b/BuildTools/SCons/SConscript.boot @@ -282,6 +282,8 @@ if env["debug"] : if env["PLATFORM"] == "win32" : env.AppendUnique(CCFLAGS = ["/{}".format(env.get("msvc_runtime"))]) + # debug builds against debug MSVC runtime can cause some more sections in the object file + env.AppendUnique(CCFLAGS = ["/bigobj"]) if env.get("universal", 0) : assert(env["PLATFORM"] == "darwin") -- cgit v0.10.2-6-g49f6