@ -68,10 +68,10 @@ if env["builtin_embree"]:
if not env.msvc:
if not env.msvc:
if env["arch"] in ["x86_64", "x86_32"]:
if env["arch"] in ["x86_64", "x86_32"]:
env_raycast.Append(CPP FLAGS=["-msse2", "-mxsave"])
env_raycast.Append(CC FLAGS=["-msse2", "-mxsave"])
if env["platform"] == "windows":
if env["platform"] == "windows":
env_raycast.Append(CPP FLAGS=["-mstackrealign"])
env_raycast.Append(CC FLAGS=["-mstackrealign"])
if env["platform"] == "windows":
if env["platform"] == "windows":
if env.msvc:
if env.msvc:
@ -92,11 +92,15 @@ if env["builtin_embree"]:
env_thirdparty.Append(CPPDEFINES=["__SSE2__", "__SSE__"])
env_thirdparty.Append(CPPDEFINES=["__SSE2__", "__SSE__"])
if env["platform"] == "web":
if env["platform"] == "web":
env_thirdparty.Append(CPP FLAGS=["-msimd128"])
env_thirdparty.Append(CXX FLAGS=["-msimd128"])
if not env.msvc:
if not env.msvc:
# Flags synced with upstream gnu.cmake.
if env["arch"] == "arm64" and env["platform"] == "linuxbsd":
env_thirdparty.Append(CXXFLAGS=["-flax-vector-conversions"])
env_thirdparty.Append(
env_thirdparty.Append(
CPPFLAGS=[
CXX FLAGS=[
"-fno-strict-overflow",
"-fno-strict-overflow",
"-fno-delete-null-pointer-checks",
"-fno-delete-null-pointer-checks",
"-fwrapv",
"-fwrapv",