You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
lightmapper: Disable build if raycast module can't build
We need to propagate the hacky checks from the raycast config to the
lightmapper config, as the failure of a `can_build()` check is not notified to
other modules (which might even be checked further depending on the processing
order in SConstruct).
A more thorough fix would be to change SConstruct to do two loops on modules:
one to check `can_build()` and disable modules which can't build, then another
one to rechecked `can_build()` with the new lineup and do further config.
But there would be more risk for regressions than with this ad hoc hack.
Similar story for the `platform/x11/detect.py` change... oh my eyes :(
(cherry picked from commit a2c68d9da7)
This commit is contained in:
@@ -310,7 +310,10 @@ def configure(env):
|
||||
if not env["builtin_pcre2"]:
|
||||
env.ParseConfig("pkg-config libpcre2-32 --cflags --libs")
|
||||
|
||||
if not env["builtin_embree"]:
|
||||
# Embree is only compatible with x86_64. Yet another unreliable hack that will break
|
||||
# cross-compilation, this will really need to be handle better. Thankfully only affects
|
||||
# people who disable builtin_embree (likely distro packagers).
|
||||
if not env["builtin_embree"] and (is64 and platform.machine() == "x86_64"):
|
||||
# No pkgconfig file so far, hardcode expected lib name.
|
||||
env.Append(LIBS=["embree3"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user