Skip to content

Commit 5a7d8f4

Browse files
committed
chore: a little extra logging
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 70287f6 commit 5a7d8f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/scikit_build_core/builder/sysconfig.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,14 @@ def get_platform(env: Mapping[str, str] | None = None) -> str:
109109
env = os.environ
110110
if sys.platform.startswith("win"):
111111
if "VSCMD_ARG_TGT_ARCH" in env:
112+
logger.debug(
113+
"Selecting {} or {} due to VSCMD_ARG_TARGET_ARCH",
114+
TARGET_TO_PLAT.get(env["VSCMD_ARG_TGT_ARCH"]),
115+
get_host_platform(),
116+
)
112117
return TARGET_TO_PLAT.get(env["VSCMD_ARG_TGT_ARCH"]) or get_host_platform()
113118
if "arm64" in env.get("SETUPTOOLS_EXT_SUFFIX", "").lower():
119+
logger.debug("Windows ARM targeted via SETUPTOOLS_EXT_SUFFIX")
114120
return "win-arm64"
115121
return get_host_platform()
116122

0 commit comments

Comments
 (0)