mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
more passing of parameters
This commit is contained in:
parent
cb6aba2315
commit
746a4161af
|
@ -126,6 +126,8 @@ def mk_build_dir(path):
|
||||||
opts.append('--git-describe')
|
opts.append('--git-describe')
|
||||||
if PYTHON_ENABLED:
|
if PYTHON_ENABLED:
|
||||||
opts.append('--python')
|
opts.append('--python')
|
||||||
|
if mk_util.IS_ARCH_ARM64:
|
||||||
|
opts.append('--arm64=true')
|
||||||
if subprocess.call(opts) != 0:
|
if subprocess.call(opts) != 0:
|
||||||
raise MKException("Failed to generate build directory at '%s'" % path)
|
raise MKException("Failed to generate build directory at '%s'" % path)
|
||||||
|
|
||||||
|
|
|
@ -649,6 +649,7 @@ def display_help(exit_code):
|
||||||
print(" -x, --x64 create 64 binary when using Visual Studio.")
|
print(" -x, --x64 create 64 binary when using Visual Studio.")
|
||||||
else:
|
else:
|
||||||
print(" --x86 force 32-bit x86 build on x64 systems.")
|
print(" --x86 force 32-bit x86 build on x64 systems.")
|
||||||
|
print(" --arm64=<bool> forcearm64 bit build on/off (supported for Darwin).")
|
||||||
print(" -m, --makefiles generate only makefiles.")
|
print(" -m, --makefiles generate only makefiles.")
|
||||||
if IS_WINDOWS:
|
if IS_WINDOWS:
|
||||||
print(" -v, --vsproj generate Visual Studio Project Files.")
|
print(" -v, --vsproj generate Visual Studio Project Files.")
|
||||||
|
@ -691,11 +692,11 @@ def parse_options():
|
||||||
global VERBOSE, DEBUG_MODE, IS_WINDOWS, VS_X64, ONLY_MAKEFILES, SHOW_CPPS, VS_PROJ, TRACE, VS_PAR, VS_PAR_NUM
|
global VERBOSE, DEBUG_MODE, IS_WINDOWS, VS_X64, ONLY_MAKEFILES, SHOW_CPPS, VS_PROJ, TRACE, VS_PAR, VS_PAR_NUM
|
||||||
global DOTNET_CORE_ENABLED, DOTNET_KEY_FILE, JAVA_ENABLED, ML_ENABLED, STATIC_LIB, STATIC_BIN, PREFIX, GMP, PYTHON_PACKAGE_DIR, GPROF, GIT_HASH, GIT_DESCRIBE, PYTHON_INSTALL_ENABLED, PYTHON_ENABLED
|
global DOTNET_CORE_ENABLED, DOTNET_KEY_FILE, JAVA_ENABLED, ML_ENABLED, STATIC_LIB, STATIC_BIN, PREFIX, GMP, PYTHON_PACKAGE_DIR, GPROF, GIT_HASH, GIT_DESCRIBE, PYTHON_INSTALL_ENABLED, PYTHON_ENABLED
|
||||||
global LINUX_X64, SLOW_OPTIMIZE, LOG_SYNC, SINGLE_THREADED
|
global LINUX_X64, SLOW_OPTIMIZE, LOG_SYNC, SINGLE_THREADED
|
||||||
global GUARD_CF, ALWAYS_DYNAMIC_BASE
|
global GUARD_CF, ALWAYS_DYNAMIC_BASE, IS_ARCH_ARM64
|
||||||
try:
|
try:
|
||||||
options, remainder = getopt.gnu_getopt(sys.argv[1:],
|
options, remainder = getopt.gnu_getopt(sys.argv[1:],
|
||||||
'b:df:sxhmcvtnp:gj',
|
'b:df:sxhmcvtnp:gj',
|
||||||
['build=', 'debug', 'silent', 'x64', 'help', 'makefiles', 'showcpp', 'vsproj', 'guardcf',
|
['build=', 'debug', 'silent', 'x64', 'arm64', 'help', 'makefiles', 'showcpp', 'vsproj', 'guardcf',
|
||||||
'trace', 'dotnet', 'dotnet-key=', 'staticlib', 'prefix=', 'gmp', 'java', 'parallel=', 'gprof', 'js',
|
'trace', 'dotnet', 'dotnet-key=', 'staticlib', 'prefix=', 'gmp', 'java', 'parallel=', 'gprof', 'js',
|
||||||
'githash=', 'git-describe', 'x86', 'ml', 'optimize', 'pypkgdir=', 'python', 'staticbin', 'log-sync', 'single-threaded'])
|
'githash=', 'git-describe', 'x86', 'ml', 'optimize', 'pypkgdir=', 'python', 'staticbin', 'log-sync', 'single-threaded'])
|
||||||
except:
|
except:
|
||||||
|
@ -718,6 +719,8 @@ def parse_options():
|
||||||
VS_X64 = True
|
VS_X64 = True
|
||||||
elif opt in ('--x86'):
|
elif opt in ('--x86'):
|
||||||
LINUX_X64=False
|
LINUX_X64=False
|
||||||
|
elif opt in ('--arm64'):
|
||||||
|
IS_ARCH_ARM64 = arg in ('true','on','True','TRUE')
|
||||||
elif opt in ('-h', '--help'):
|
elif opt in ('-h', '--help'):
|
||||||
display_help(0)
|
display_help(0)
|
||||||
elif opt in ('-m', '--makefiles'):
|
elif opt in ('-m', '--makefiles'):
|
||||||
|
|
Loading…
Reference in a new issue