|
5 | 5 | get_faasm_build_env_dict
|
6 | 6 | )
|
7 | 7 | 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 |
9 | 9 | from invoke import task
|
10 | 10 | from os import environ, makedirs
|
11 | 11 | from os.path import join, exists
|
@@ -189,13 +189,13 @@ def native(ctx, clean=False):
|
189 | 189 | run("wget {}".format(tar_url), shell=True, check=True, cwd=workdir)
|
190 | 190 | run("tar -xf {}".format(tar_name), shell=True, check=True, cwd=workdir)
|
191 | 191 |
|
192 |
| - llvm_version_major = LLVM_VERSION.split(".")[0] |
| 192 | + llvm_native_version_major = LLVM_NATIVE_VERSION.split(".")[0] |
193 | 193 | workdir = join(workdir, PYTHON_VERSION)
|
194 | 194 | 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), |
197 | 197 | 'CFLAGS="-O3 -DANSI"',
|
198 |
| - 'LD="clang-{}"'.format(llvm_version_major), |
| 198 | + 'LD="clang-{}"'.format(llvm_native_version_major), |
199 | 199 | "./configure",
|
200 | 200 | "--prefix={}".format(PYTHON_INSTALL_DIR),
|
201 | 201 | ]
|
|
0 commit comments