Fixed path error ('u' prefix in LLVM path) caused by winreg value encoding:

Program u'C:\\Program Files\\LLVM\\bin\\clang-cl.exe' is not executable
(complete log in C:\Users\SYSDYN_FE\Documents\waf-build\build\config.log)
This commit is contained in:
Andrew Brodko 2020-07-08 17:16:25 +00:00
parent 6c99c7cb0b
commit 78410afd01
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def get_llvm_paths(self):
llvm_dir, _ = Utils.winreg.QueryValueEx(llvm_key, '')
if llvm_dir:
llvm_path.append(os.path.join(llvm_dir, 'bin'))
llvm_path.append(os.path.join(llvm_dir.encode("utf-8"), 'bin'))
tmp = self.environ.get('LLVM_PATH') or self.env.LLVM_PATH
if tmp: