mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 21:31:13 +00:00
build: make sure the HAVE_ key is undefined on failure
Some particular checks can define the HAVE_ key on their own. To make sure they work correctly when composed (with compose_checks) we force the HAVE_ key to be undefined if a check fails.
This commit is contained in:
parent
2dac2efce4
commit
d0e19b659e
@ -95,6 +95,7 @@ the autodetection check failed.".format(self.identifier)
|
|||||||
self.success(self.identifier)
|
self.success(self.identifier)
|
||||||
else:
|
else:
|
||||||
self.fail()
|
self.fail()
|
||||||
|
self.ctx.undefine(inflector.define_key(self.identifier))
|
||||||
self.fatal_if_needed()
|
self.fatal_if_needed()
|
||||||
|
|
||||||
def enabled_option(self, identifier=None):
|
def enabled_option(self, identifier=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user