mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
simplify
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2e52029114
commit
81cb575c22
|
@ -134,11 +134,9 @@ def _configure_z3():
|
||||||
for i in range(len(sys.argv) - 1):
|
for i in range(len(sys.argv) - 1):
|
||||||
key = sys.argv[i]
|
key = sys.argv[i]
|
||||||
if key.starts_with("Z3_"):
|
if key.starts_with("Z3_"):
|
||||||
val = sys.argv[i + 1]
|
val = sys.argv[i + 1].upper()
|
||||||
if val.lower() == "true":
|
if val == "TRUE" or val == "FALSE":
|
||||||
cmake_options[key] = "TRUE"
|
cmake_options[key] = val
|
||||||
elif val.lower() == "false":
|
|
||||||
cmake_options[key] = "FALSE"
|
|
||||||
|
|
||||||
cmake_args = [ '-D' + key + '=' + value for key,value in cmake_options.items() ]
|
cmake_args = [ '-D' + key + '=' + value for key,value in cmake_options.items() ]
|
||||||
args = [ 'cmake', *cmake_args, SRC_DIR ]
|
args = [ 'cmake', *cmake_args, SRC_DIR ]
|
||||||
|
|
Loading…
Reference in a new issue