Fix libary path of modules for Windows

This commit fixes the library path of modules in Windows by adding the Bin directory in the list of paths. Previously, ROOT by default assumes that modules are present in the Lib directory which is not the case for Windows.
This commit is contained in:
Vaibhav Garg 2020-07-16 13:50:05 +05:30 committed by jenkins
parent 3d7672afe3
commit 18f9c31d5d

View File

@ -526,7 +526,7 @@ namespace {
static SmallVector<StringRef, 4> getPathsFromEnv(const char* EnvVar) {
if (!EnvVar) return {};
SmallVector<StringRef, 4> Paths;
StringRef(EnvVar).split(Paths, ':', -1, false);
StringRef(EnvVar).split(Paths, llvm::sys::EnvPathSeparator, -1, false);
return Paths;
}