Skip to content

Commit

Permalink
Attempt to fix windows builds by passing /bigobj.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivorforce committed Sep 17, 2024
1 parent ea74671 commit ec91485
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ec91485

Please sign in to comment.