summaryrefslogtreecommitdiff
path: root/modules/denoise
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-06-06 20:29:52 +0200
committerRémi Verschelde <rverschelde@gmail.com>2020-06-06 21:23:46 +0200
commit39d84fef89feb26a6aede90288614be13792d37d (patch)
tree69b1a4d1a3ed5bfa4b00dafdf9aff78728cd997a /modules/denoise
parentd838a4473589797264a1f9f5cd4de95604709d30 (diff)
denoise: Restrict build to 64-bit desktop platforms
One of OIDN's dependencies only supports x86_64 and aarch64. For now we also exclude potential future Android tools builds, but this could be re-evaluated in the future. Fixes #38759.
Diffstat (limited to 'modules/denoise')
-rw-r--r--modules/denoise/config.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/denoise/config.py b/modules/denoise/config.py
index 53b8f2f2e3..091d7643c0 100644
--- a/modules/denoise/config.py
+++ b/modules/denoise/config.py
@@ -1,5 +1,11 @@
def can_build(env, platform):
- return env["tools"]
+ # Thirdparty dependency OpenImage Denoise includes oneDNN library
+ # which only supports 64-bit architectures.
+ # It's also only relevant for tools build and desktop platforms,
+ # as doing lightmap generation and denoising on Android or HTML5
+ # would be a bit far-fetched.
+ desktop_platforms = ["linuxbsd", "osx", "windows"]
+ return env["tools"] and platform in desktop_platforms and env["bits"] == "64"
def configure(env):