File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 8
8
build_config_cmd ,
9
9
)
10
10
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
12
12
from invoke import task
13
13
from os import environ , makedirs
14
14
from os .path import join , exists
@@ -187,12 +187,13 @@ def native(ctx, clean=False):
187
187
run ("wget {}" .format (tar_url ), shell = True , check = True , cwd = workdir )
188
188
run ("tar -xf {}" .format (tar_name ), shell = True , check = True , cwd = workdir )
189
189
190
+ llvm_version_major = LLVM_VERSION .split ("." )[0 ]
190
191
workdir = join (workdir , PYTHON_VERSION )
191
192
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 ) ,
194
195
'CFLAGS="-O3 -DANSI"' ,
195
- 'LD="clang-13"' ,
196
+ 'LD="clang-{}"' . format ( llvm_version_major ) ,
196
197
"./configure" ,
197
198
"--prefix={}" .format (PYTHON_INSTALL_DIR ),
198
199
]
You can’t perform that action at this time.
0 commit comments