Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate ARM64 cross-compilation issue #2370

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@
import os
import platform
import re
import setuptools
import shutil
import subprocess
import sys
import winreg
from collections.abc import MutableSequence
from pathlib import Path
from setuptools import Extension, setup
from setuptools.command.build import build
Expand All @@ -52,6 +54,8 @@
else:
from distutils.dep_util import newer_group

print(setuptools.__version__)

build_id_patch = build_id
if not "." in build_id_patch:
build_id_patch += ".0"
Expand Down Expand Up @@ -1027,9 +1031,10 @@ def key_reverse_mc(a):
sources = sorted(sources, key=key_reverse_mc)
return MSVCCompiler.compile(self, sources, **kwargs)

def spawn(self, cmd):
is_link = cmd[0].endswith("link.exe") or cmd[0].endswith('"link.exe"')
is_mt = cmd[0].endswith("mt.exe") or cmd[0].endswith('"mt.exe"')
def spawn(self, cmd: MutableSequence[str]) -> None:
executable = cmd[0].replace('"', "")
is_link = executable.endswith("link.exe")
is_mt = executable.endswith("mt.exe")
if is_mt:
# We don't want mt.exe run...
return
Expand Down
Loading