|
@@ -222,7 +222,7 @@ class CompilationEnvironment:
|
|
|
self.linkDll = 'link /nologo /DLL /MAP:NUL /FIXED:NO /OPT:REF /INCREMENTAL:NO /LIBPATH:"%(PSDK)s\\lib" /LIBPATH:"%(MSVC)s\\lib%(suffix64)s" /LIBPATH:"%(python)s\\libs" /out:%(basename)s%(dllext)s.pyd %(basename)s.obj'
|
|
self.linkDll = 'link /nologo /DLL /MAP:NUL /FIXED:NO /OPT:REF /INCREMENTAL:NO /LIBPATH:"%(PSDK)s\\lib" /LIBPATH:"%(MSVC)s\\lib%(suffix64)s" /LIBPATH:"%(python)s\\libs" /out:%(basename)s%(dllext)s.pyd %(basename)s.obj'
|
|
|
|
|
|
|
|
elif self.platform.startswith('osx_'):
|
|
elif self.platform.startswith('osx_'):
|
|
|
- # OSX
|
|
|
|
|
|
|
+ # macOS
|
|
|
proc = self.platform.split('_', 1)[1]
|
|
proc = self.platform.split('_', 1)[1]
|
|
|
if proc == 'i386':
|
|
if proc == 'i386':
|
|
|
self.arch = '-arch i386'
|
|
self.arch = '-arch i386'
|
|
@@ -230,6 +230,8 @@ class CompilationEnvironment:
|
|
|
self.arch = '-arch ppc'
|
|
self.arch = '-arch ppc'
|
|
|
elif proc == 'amd64':
|
|
elif proc == 'amd64':
|
|
|
self.arch = '-arch x86_64'
|
|
self.arch = '-arch x86_64'
|
|
|
|
|
+ elif proc in ('arm64', 'aarch64'):
|
|
|
|
|
+ self.arch = '-arch arm64'
|
|
|
self.compileObjExe = "gcc -c %(arch)s -o %(basename)s.o -O2 -I%(pythonIPath)s %(filename)s"
|
|
self.compileObjExe = "gcc -c %(arch)s -o %(basename)s.o -O2 -I%(pythonIPath)s %(filename)s"
|
|
|
self.compileObjDll = "gcc -fPIC -c %(arch)s -o %(basename)s.o -O2 -I%(pythonIPath)s %(filename)s"
|
|
self.compileObjDll = "gcc -fPIC -c %(arch)s -o %(basename)s.o -O2 -I%(pythonIPath)s %(filename)s"
|
|
|
self.linkExe = "gcc %(arch)s -o %(basename)s %(basename)s.o -framework Python"
|
|
self.linkExe = "gcc %(arch)s -o %(basename)s %(basename)s.o -framework Python"
|