Skip to content

Commit

Permalink
Fix Windows builds with Godot 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Oct 5, 2024
1 parent b440069 commit 2131e7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions thirdparty/fast_noise_2/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ env_fn2 = env_voxel.Clone()
# Note: when compiling with clang-cl on Windows, `env.msvc` is still True because clang-cl behaves like an MSVC
# frontend. However, Clang is more picky and generates more warnings, so we use Clang options anyways.
if env.msvc and not env["use_llvm"]:
# Avoid a compiler bug in VS 2022 (doesn't occur in VS 2019)
env_fn2['CCFLAGS'].remove('/permissive-')
# Avoid a compiler bug in VS 2022 (doesn't occur in VS 2019).
# Check for existence because it was added in Godot 4.4 and currently we also support 4.3
# https://github.com/Zylann/godot/commit/807904d9515e9d2aaf16f6260945a6632689f1b9
if '/permissive-' in env_fn2['CCFLAGS']:
env_fn2['CCFLAGS'].remove('/permissive-')
# In some places, integral constants are multiplied but cause overflow (ex: Simplex.inl(432) in 0.10.0-alpha).
# This is usually expected by the devs though.
env_fn2.Append(CXXFLAGS=["/wd4307"])
Expand Down

0 comments on commit 2131e7a

Please sign in to comment.