|
@@ -68,10 +68,10 @@ if env["builtin_embree"]:
|
|
|
|
|
|
if not env.msvc:
|
|
if not env.msvc:
|
|
if env["arch"] in ["x86", "x86_64"]:
|
|
if env["arch"] in ["x86", "x86_64"]:
|
|
- env_raycast.Append(CPPFLAGS=["-msse2", "-mxsave"])
|
|
|
|
|
|
+ env_raycast.Append(CCFLAGS=["-msse2", "-mxsave"])
|
|
|
|
|
|
if env["platform"] == "windows":
|
|
if env["platform"] == "windows":
|
|
- env_raycast.Append(CPPFLAGS=["-mstackrealign"])
|
|
|
|
|
|
+ env_raycast.Append(CCFLAGS=["-mstackrealign"])
|
|
|
|
|
|
if env["platform"] == "windows":
|
|
if env["platform"] == "windows":
|
|
if env.msvc:
|
|
if env.msvc:
|
|
@@ -90,8 +90,11 @@ if env["builtin_embree"]:
|
|
|
|
|
|
if not env.msvc:
|
|
if not env.msvc:
|
|
# Flags synced with upstream gnu.cmake.
|
|
# Flags synced with upstream gnu.cmake.
|
|
|
|
+ if env["arch"] == "arm64" and env["platform"] == "x11":
|
|
|
|
+ env_thirdparty.Append(CXXFLAGS=["-flax-vector-conversions"])
|
|
|
|
+
|
|
env_thirdparty.Append(
|
|
env_thirdparty.Append(
|
|
- CPPFLAGS=[
|
|
|
|
|
|
+ CXXFLAGS=[
|
|
"-fno-strict-overflow",
|
|
"-fno-strict-overflow",
|
|
"-fno-delete-null-pointer-checks",
|
|
"-fno-delete-null-pointer-checks",
|
|
"-fwrapv",
|
|
"-fwrapv",
|