File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def preprocess(i):
7373def detect_version (i ):
7474 logger = i ['automation' ].logger
7575
76- r = i ['automation' ].parse_version ({'match_text' : r'CLANG:\s(?:AOCC_)?([\d.]+(?:pre)?(?:-[ \w#]+)*(?:-Build#\d+)?|Unknown-Revision)(?=[ )])' ,
76+ r = i ['automation' ].parse_version ({'match_text' : r'CLANG:\s(?:AOCC_)?([\d.]+(?:pre)?(?:[-_ \w#]+)*(?:-Build#\d+)?|Unknown-Revision)(?=[ )])' ,
7777 'group_number' : 1 ,
7878 'env_key' : 'MLC_AOCC_VERSION' ,
7979 'which_env' : i ['env' ]})
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments