From ec9148563d06959a22e299929278f5d06799d332 Mon Sep 17 00:00:00 2001 From: Lukas Tenbrink Date: Tue, 17 Sep 2024 03:03:57 +0200 Subject: [PATCH] Attempt to fix windows builds by passing /bigobj. --- SConstruct | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SConstruct b/SConstruct index 830a372..4b81be4 100644 --- a/SConstruct +++ b/SConstruct @@ -75,6 +75,11 @@ if env["platform"] in ["macos", "ios"]: # Choosing more will make your program faster, but also more incompatible to older machines. '-msse2', '-msse3', '-msse4.1', '-msse4.2', '-mavx' ]) +if env["platform"] in ["windows"]: + env.Append(CPPFLAGS=[ + # Needed because we have very large functions due to templates. + '/bigobj', + ]) # You can also use '-march=native' instead, which will enable everything your computer has. # Keep in mind the resulting binary will likely not work on many other computers.