Skip to content

Commit 767976e

Browse files
committed
Export needed variables for get,llvm
1 parent 0f526c2 commit 767976e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

script/get-llvm/customize.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ def postprocess(i):
8383

8484
found_path = os.path.dirname(found_file_path)
8585

86+
env['MLC_LLVM_CLANG_BIN_PATH'] = found_path
87+
env['MLC_LLVM_INSTALLED_PATH'] = os.path.dirname(
88+
found_path) # /usr in case of /usr/bin/clang
89+
90+
env['MLC_LLVM_CLANG_INSTALLED_PATH'] = env['MLC_LLVM_INSTALLED_PATH']
91+
8692
file_name_c = os.path.basename(found_file_path)
8793
file_name_cpp = file_name_c.replace("clang", "clang++")
8894

0 commit comments

Comments
 (0)