Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 710aa0f

Browse files
committed
fix intel libraries inclusion order
1 parent f75ad79 commit 710aa0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ func addIntelLibrariesToLdPath() {
1212
//scan /opt/intel searching for sdks
1313
var extraPaths []string
1414
filepath.Walk("/opt/intel", func(path string, f os.FileInfo, err error) error {
15-
if strings.Contains(f.Name(), ".so") {
15+
if strings.Contains(f.Name(), ".so") && !strings.Contains(path, "uninstall") {
1616
extraPaths = appendIfUnique(extraPaths, filepath.Dir(path))
1717
}
1818
return nil
1919
})
20-
os.Setenv("LD_LIBRARY_PATH", strings.Join(extraPaths, ":")+":"+os.Getenv("LD_LIBRARY_PATH"))
20+
os.Setenv("LD_LIBRARY_PATH", os.Getenv("LD_LIBRARY_PATH")+":"+strings.Join(extraPaths, ":"))
2121
}
2222
}

0 commit comments

Comments
 (0)