1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

Issue #888 - Enable dav1d SIMD on more architectures

This commit is contained in:
Basilisk-Dev
2026-05-11 10:16:34 -04:00
committed by roytam1
parent 2d83afa321
commit d328cef713
18 changed files with 363 additions and 2 deletions
@@ -1803,6 +1803,17 @@ VARIABLES = {
If yasm is not available on this system, or does not support the
current target architecture, an error will be raised.
"""),
'USE_NASM': (bool, bool,
"""Use the nasm assembler to assemble assembly files from SOURCES.
By default, the build will use the toolchain assembler, $(AS), to
assemble source files in assembly language (.s or .asm files). Setting
this value to ``True`` will cause it to use nasm instead.
If nasm is not available on this system, or does not support the
current target architecture, an error will be raised.
"""),
}
# Sanity check: we don't want any variable above to have a list as storage type.
@@ -1006,6 +1006,14 @@ class TreeMetadataEmitter(LoggingMixin):
passthru.variables['ASFLAGS'] = context.config.substs.get('YASM_ASFLAGS')
passthru.variables['AS_DASH_C_FLAG'] = ''
if context.get('USE_NASM') is True:
nasm = context.config.substs.get('NASM')
if not nasm or not context.config.substs.get('HAVE_NASM'):
raise SandboxValidationError('nasm 2.14 or later is not available', context)
passthru.variables['AS'] = nasm
passthru.variables['ASFLAGS'] = context.config.substs.get('NASM_ASFLAGS')
passthru.variables['AS_DASH_C_FLAG'] = ''
for (symbol, cls) in [
('ANDROID_RES_DIRS', AndroidResDirs),
('ANDROID_EXTRA_RES_DIRS', AndroidExtraResDirs),