Prevent lua check from adding flags to env when it fails.
This commit is contained in:
parent
991610105c
commit
c42a66d370
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ from pkgconfig import run_pkg_config
|
|||
|
||||
def CheckLua(context, require_version):
|
||||
env = context.env
|
||||
backup = env.Clone().Dictionary()
|
||||
|
||||
context.Message("Checking for Lua development files version " + require_version + "... ")
|
||||
|
||||
|
@ -23,6 +24,7 @@ def CheckLua(context, require_version):
|
|||
return True
|
||||
else:
|
||||
context.Result("no")
|
||||
env.Replace(**backup)
|
||||
return False
|
||||
|
||||
config_checks = { "CheckLua" : CheckLua }
|
||||
|
|
Loading…
Add table
Reference in a new issue