Skip to content

Commit 64e5b60

Browse files
committed
To disable getArchSpecificLibPaths on AIX.
1 parent 0287e93 commit 64e5b60

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,12 +1015,7 @@ ToolChain::path_list ToolChain::getArchSpecificLibPaths() const {
10151015
Paths.push_back(std::string(Path));
10161016
};
10171017

1018-
// For AIX, get the triple without the OS version.
1019-
if (Triple.isOSAIX()) {
1020-
const llvm::Triple &TripleWithoutVersion = getTripleWithoutOSVersion();
1021-
AddPath({TripleWithoutVersion.str()});
1022-
} else
1023-
AddPath({getTriple().str()});
1018+
AddPath({getTriple().str()});
10241019
AddPath({getOSLibName(), llvm::Triple::getArchTypeName(getArch())});
10251020
return Paths;
10261021
}

clang/lib/Driver/ToolChains/AIX.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ class LLVM_LIBRARY_VISIBILITY AIX : public ToolChain {
9898
return llvm::DebuggerKind::DBX;
9999
}
100100

101+
path_list getArchSpecificLibPaths() const override { return path_list(); };
102+
101103
protected:
102104
Tool *buildAssembler() const override;
103105
Tool *buildLinker() const override;

0 commit comments

Comments
 (0)