diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-05 10:14:25 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-05 10:14:25 +0100 |
commit | 8ff2ca35c55d3cce73abc4f9e4c085eeb32343c4 (patch) | |
tree | d8cedd778c1616284f69c69d81613ed4a9a3838f /modules/raycast/SCsub | |
parent | 73de09f38e6b55ab5e8ff10c3e3180f91e04a5c4 (diff) | |
parent | b2373298a242e4c49211a9eaa684f3f14f95ebf7 (diff) |
Merge pull request #69169 from akien-mga/embree-wasm-win32
embree: Enable raycast module build for Web and Windows x86_32
Diffstat (limited to 'modules/raycast/SCsub')
-rw-r--r-- | modules/raycast/SCsub | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/raycast/SCsub b/modules/raycast/SCsub index 20b05816e1..51d75d45b0 100644 --- a/modules/raycast/SCsub +++ b/modules/raycast/SCsub @@ -67,7 +67,7 @@ if env["builtin_embree"]: env_raycast.AppendUnique(CPPDEFINES=["NDEBUG"]) # No assert() even in debug builds. if not env.msvc: - if env["arch"] == "x86_64": + if env["arch"] in ["x86_64", "x86_32"]: env_raycast.Append(CPPFLAGS=["-msse2", "-mxsave"]) if env["platform"] == "windows": @@ -87,10 +87,13 @@ if env["builtin_embree"]: env_thirdparty.disable_warnings() env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources) - if env["arch"] == "arm64" or env.msvc: + if env["arch"] != "x86_64" or env.msvc: # Embree needs those, it will automatically use SSE2NEON in ARM env_thirdparty.Append(CPPDEFINES=["__SSE2__", "__SSE__"]) + if env["platform"] == "web": + env_thirdparty.Append(CPPFLAGS=["-msimd128"]) + if not env.msvc: env_thirdparty.Append( CPPFLAGS=[ |