Skip to content

Commit 5701494

Browse files
committed
cpython: use lllvm-17 for the native build
1 parent 755a2fb commit 5701494

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tasks/cpython.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
build_config_cmd,
99
)
1010
from faasmtools.compile_util import wasm_cmake, wasm_copy_upload
11-
from faasmtools.env import WASM_DIR
11+
from faasmtools.env import LLVM_VERSION, WASM_DIR
1212
from invoke import task
1313
from os import environ, makedirs
1414
from os.path import join, exists
@@ -187,12 +187,13 @@ def native(ctx, clean=False):
187187
run("wget {}".format(tar_url), shell=True, check=True, cwd=workdir)
188188
run("tar -xf {}".format(tar_name), shell=True, check=True, cwd=workdir)
189189

190+
llvm_version_major = LLVM_VERSION.split(".")[0]
190191
workdir = join(workdir, PYTHON_VERSION)
191192
native_configure_cmd = [
192-
'CC="clang-13"',
193-
'CXX="clang++-13"',
193+
'CC="clang-{}"'.format(llvm_version_major),
194+
'CXX="clang++-{}"'.format(llvm_version_major),
194195
'CFLAGS="-O3 -DANSI"',
195-
'LD="clang-13"',
196+
'LD="clang-{}"'.format(llvm_version_major),
196197
"./configure",
197198
"--prefix={}".format(PYTHON_INSTALL_DIR),
198199
]

0 commit comments

Comments
 (0)