mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 03:52:22 +02:00
build: fail configure if --lua is specified and Lua isn't found
Should result in: "You manually enabled the feature 'lua', but the autodetection check failed." The moved bit of code was probably intended to do that all along, but it was running too late, so the code that actually checked for Lua didn't know it was explicitly asked for and quietly disabled it if not found.
This commit is contained in:
parent
1ba5dc84ca
commit
943f56a96b
6
wscript
6
wscript
@ -958,6 +958,9 @@ def configure(ctx):
|
||||
while re.match('\$\{([^}]+)\}', ctx.env[varname]):
|
||||
ctx.env[varname] = Utils.subst_vars(ctx.env[varname], ctx.env)
|
||||
|
||||
if ctx.options.LUA_VER:
|
||||
ctx.options.enable_lua = True
|
||||
|
||||
ctx.parse_dependencies(build_options)
|
||||
ctx.parse_dependencies(main_dependencies)
|
||||
ctx.parse_dependencies(libav_dependencies)
|
||||
@ -965,9 +968,6 @@ def configure(ctx):
|
||||
ctx.parse_dependencies(video_output_features)
|
||||
ctx.parse_dependencies(hwaccel_features)
|
||||
|
||||
if ctx.options.LUA_VER:
|
||||
ctx.options.enable_lua = True
|
||||
|
||||
if ctx.options.SWIFT_FLAGS:
|
||||
ctx.env.SWIFT_FLAGS.extend(split(ctx.options.SWIFT_FLAGS))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user