Skip to content

Commit

Permalink
merge internal development externally
Browse files Browse the repository at this point in the history
  • Loading branch information
searlmc1 committed May 16, 2024
2 parents e49191e + fbbf597 commit a2cf4e2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions amd/comgr/src/comgr-env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,10 @@ StringRef StripGNUInstallLibDir(StringRef Path) {
StringRef SecondLevelParentName =
llvm::sys::path::filename(SecondLevelParentDir);

if (ParentName == "lib") {
if (ParentName == "lib" || ParentName == "lib64") {
ParentDir = llvm::sys::path::parent_path(ParentDir);
ParentName = llvm::sys::path::filename(ParentDir);
} else if (ParentName == "lib64") {
ParentDir = llvm::sys::path::parent_path(ParentDir);
ParentName = llvm::sys::path::filename(ParentDir);
} else if (SecondLevelParentName == "lib") {
ParentDir = SecondLevelParentDir;
ParentDir = llvm::sys::path::parent_path(SecondLevelParentDir);
}

return ParentDir;
Expand Down

0 comments on commit a2cf4e2

Please sign in to comment.