Skip to content

Commit 66fdd6e

Browse files
committed
cpython: use llvm native version for native compilation
1 parent ad7700b commit 66fdd6e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tasks/cpython.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
get_faasm_build_env_dict
66
)
77
from faasmtools.compile_util import wasm_cmake, wasm_copy_upload
8-
from faasmtools.env import LLVM_VERSION, WASM_DIR
8+
from faasmtools.env import LLVM_NATIVE_VERSION, WASM_DIR
99
from invoke import task
1010
from os import environ, makedirs
1111
from os.path import join, exists
@@ -189,13 +189,13 @@ def native(ctx, clean=False):
189189
run("wget {}".format(tar_url), shell=True, check=True, cwd=workdir)
190190
run("tar -xf {}".format(tar_name), shell=True, check=True, cwd=workdir)
191191

192-
llvm_version_major = LLVM_VERSION.split(".")[0]
192+
llvm_native_version_major = LLVM_NATIVE_VERSION.split(".")[0]
193193
workdir = join(workdir, PYTHON_VERSION)
194194
native_configure_cmd = [
195-
'CC="clang-{}"'.format(llvm_version_major),
196-
'CXX="clang++-{}"'.format(llvm_version_major),
195+
'CC="clang-{}"'.format(llvm_native_version_major),
196+
'CXX="clang++-{}"'.format(llvm_native_version_major),
197197
'CFLAGS="-O3 -DANSI"',
198-
'LD="clang-{}"'.format(llvm_version_major),
198+
'LD="clang-{}"'.format(llvm_native_version_major),
199199
"./configure",
200200
"--prefix={}".format(PYTHON_INSTALL_DIR),
201201
]

0 commit comments

Comments
 (0)