Skip to content

Commit cb6aba2

Browse files
more arm
1 parent 7955326 commit cb6aba2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/mk_unix_dist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def display_help():
5656
print(" -f, --force force script to regenerate Makefiles.")
5757
print(" --nodotnet do not include .NET bindings in the binary distribution files.")
5858
print(" --dotnet-key=<file> sign the .NET assembly with the private key in <file>.")
59+
print(" --arch=<arch> set architecture (to arm64) to force arm64 build")
5960
print(" --nojava do not include Java bindings in the binary distribution files.")
6061
print(" --nopython do not include Python bindings in the binary distribution files.")
6162
print(" --githash include git hash in the Zip file.")

scripts/mk_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2436,7 +2436,7 @@ def mk_config():
24362436
if ONLY_MAKEFILES:
24372437
return
24382438
config = open(os.path.join(BUILD_DIR, 'config.mk'), 'w')
2439-
global CXX, CC, GMP, GUARD_CF, STATIC_BIN, GIT_HASH, CPPFLAGS, CXXFLAGS, LDFLAGS, EXAMP_DEBUG_FLAG, FPMATH_FLAGS, LOG_SYNC, SINGLE_THREADED
2439+
global CXX, CC, GMP, GUARD_CF, STATIC_BIN, GIT_HASH, CPPFLAGS, CXXFLAGS, LDFLAGS, EXAMP_DEBUG_FLAG, FPMATH_FLAGS, LOG_SYNC, SINGLE_THREADED, IS_ARCH_ARM64
24402440
if IS_WINDOWS:
24412441
CXXFLAGS = '/nologo /Zi /D WIN32 /D _WINDOWS /EHsc /GS /Gd /std:c++17'
24422442
config.write(
@@ -2642,6 +2642,7 @@ def mk_config():
26422642
if sysname == 'Linux' and machine.startswith('armv7') or machine.startswith('armv8'):
26432643
CXXFLAGS = '%s -fpic' % CXXFLAGS
26442644
if IS_OSX and IS_ARCH_ARM64:
2645+
print("Setting arm64")
26452646
CXXFLAGS = '%s -arch arm64' % CXXFLAGS
26462647
LDFLAGS = '%s -arch arm64' % LDFLAGS
26472648
SLIBEXTRAFLAGS = '%s -arch arm64' % SLIBEXTRAFLAGS

0 commit comments

Comments
 (0)