Skip to content

Commit

Permalink
Only append /bigobj if the compiler is MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivorforce committed Sep 17, 2024
1 parent c354890 commit bb1e76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if env["platform"] in ["macos", "ios"]:
# For now let's keep it blank because some SIMD extensions should be available by default anyway.
# '-msse2', '-msse3', '-msse4.1', '-msse4.2', '-mavx'
])
if env["platform"] in ["windows"]:
if env["platform"] in ["windows"] and "msvc" in env["TOOLS"]:
env.Append(CPPFLAGS=[
# Needed because we have very large functions due to templates.
'/bigobj',
Expand Down

0 comments on commit bb1e76e

Please sign in to comment.