Skip to content

Commit 32876d2

Browse files
committed
unix: populate TOOLCHAIN with dynamic platform
1 parent 4239e72 commit 32876d2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cpython-unix/build.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def build_libedit(client, image, platform, musl=False):
230230

231231
env = {
232232
"CC": "clang",
233-
"TOOLCHAIN": "clang-linux64",
233+
"TOOLCHAIN": "clang-%s" % platform,
234234
"LIBEDIT_VERSION": DOWNLOADS["libedit"]["version"],
235235
}
236236

@@ -263,7 +263,7 @@ def build_readline(client, image, platform, musl=False):
263263

264264
env = {
265265
"CC": "clang",
266-
"TOOLCHAIN": "clang-linux64",
266+
"TOOLCHAIN": "clang-%s" % platform,
267267
"READLINE_VERSION": DOWNLOADS["readline"]["version"],
268268
}
269269

@@ -296,7 +296,7 @@ def build_tix(client, image, platform, musl=False):
296296

297297
env = {
298298
"CC": "clang",
299-
"TOOLCHAIN": "clang-linux64",
299+
"TOOLCHAIN": "clang-%s" % platform,
300300
"TCL_VERSION": DOWNLOADS["tcl"]["version"],
301301
"TIX_VERSION": DOWNLOADS["tix"]["version"],
302302
"TK_VERSION": DOWNLOADS["tk"]["version"],
@@ -577,6 +577,7 @@ def build_cpython(
577577
"PYTHON_VERSION": entry["version"],
578578
"PYTHON_MAJMIN_VERSION": entry["version"][:3],
579579
"SETUPTOOLS_VERSION": DOWNLOADS["setuptools"]["version"],
580+
"TOOLCHAIN": "clang-%s" % platform,
580581
}
581582

582583
if musl:

0 commit comments

Comments
 (0)