mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:42:17 +00:00
build: fix regression in cross-compilation [2]
Fixup commit for 5cb8439015
. getattr only works on dot notation.
This commit is contained in:
parent
4ed4341df8
commit
a53abbf4a6
@ -25,7 +25,7 @@ def __merge_options__(dependency_identifier, *args):
|
||||
def _filter_cc_arguments(ctx, opts):
|
||||
if ctx.env.DEST_OS != Utils.unversioned_sys_platform():
|
||||
# cross compiling, remove execute=True if present
|
||||
if getattr(opts, 'execute', None) == True:
|
||||
if opts.get('execute'):
|
||||
opts['execute'] = False
|
||||
return opts
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user