mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
add arm64 auto-detect
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
8c2909f52b
commit
c47bd1d01f
|
@ -599,7 +599,6 @@ if os.name == 'nt':
|
|||
elif os.name == 'posix':
|
||||
if os.uname()[0] == 'Darwin':
|
||||
IS_OSX=True
|
||||
print("setting Darwin", os.uname()[4])
|
||||
if os.uname()[4] == 'arm64':
|
||||
IS_OS_ARM64 = True
|
||||
elif os.uname()[0] == 'Linux':
|
||||
|
@ -2640,6 +2639,10 @@ def mk_config():
|
|||
LDFLAGS = '%s -static-libgcc -static-libstdc++' % LDFLAGS
|
||||
if sysname == 'Linux' and machine.startswith('armv7') or machine.startswith('armv8'):
|
||||
CXXFLAGS = '%s -fpic' % CXXFLAGS
|
||||
if IS_OSX and IS_OS_ARM64:
|
||||
CXXFLAGS = '%s -arch arm64' % CXXFLAGS
|
||||
LDFLAGS = '%s -arch arm64' % LDFLAGS
|
||||
SLIBEXTRAFLAGS = '%s -arch arm64' % SLIBEXTRAFLAGS
|
||||
|
||||
config.write('PREFIX=%s\n' % PREFIX)
|
||||
config.write('CC=%s\n' % CC)
|
||||
|
|
Loading…
Reference in a new issue