diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2023-03-03 14:02:05 +0100 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-13 21:49:15 +0100 |
commit | c6f7675b1f541ba72f983861b722864887241eb7 (patch) | |
tree | 609764abc9c5ad8cb5984a88acc560d9084b7524 | |
parent | c8f64c68a5437242212311afa3dc83cac754fc43 (diff) |
Linux: Don't try to link system embree3 on unsupported archs
(cherry picked from commit afb8693715db4889e79dc0994dfe21eec9e324f1)
-rw-r--r-- | platform/linuxbsd/detect.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index 3f713d2db3..e203dca005 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -277,11 +277,10 @@ def configure(env: "Environment"): env.Prepend(CPPPATH=["/usr/include/recastnavigation"]) env.Append(LIBS=["Recast"]) - if not env["builtin_embree"]: + if not env["builtin_embree"] and env["arch"] in ["x86_64", "arm64"]: # No pkgconfig file so far, hardcode expected lib name. env.Append(LIBS=["embree3"]) - ## Flags if env["fontconfig"]: if not env["use_sowrap"]: if os.system("pkg-config --exists fontconfig") == 0: # 0 means found |