Commit 8a7dce37 authored by John Zhang's avatar John Zhang

fix: add libmu path to environ LD_LIBRARY_PATH

parent c00a867e
......@@ -19,7 +19,7 @@ from pathlib import Path
from mubench.lang import Language
from mubench import CALLBACKS_DIR
from mubench.utils import expandenv, run_in_subproc
from mubench.utils import expandenv, run_in_subproc, add_path_to_ld_library_path
class Mu(Language):
......@@ -162,6 +162,10 @@ class Mu(Language):
# add library path, especially path to
for d in cc['library_dirs']:
add_path_to_ld_library_path(d, task.env)
run_in_subproc(cmd, task.env)
assert target.exists()
......@@ -183,5 +187,5 @@ class Mu(Language):
return run_in_subproc(cmd, task.env)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment