Skip to content

Commit ec9436a

Browse files
committed
Fix incorrect call to getClangLibraryPath
1 parent 1ad2462 commit ec9436a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Driver/ToolChains.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ static void addLinkRuntimeLibForWindows(const ArgList &Args,
11891189
StringRef WindowsLibName,
11901190
const ToolChain &TC) {
11911191
SmallString<128> P;
1192-
getClangLibraryPathOnWindows(P);
1192+
getClangLibraryPathOnWindows(P, Args, TC);
11931193
llvm::sys::path::append(P, WindowsLibName);
11941194
Arguments.push_back(Args.MakeArgString(P));
11951195
}
@@ -1199,7 +1199,7 @@ addLinkRuntimeLibForLinux(const ArgList &Args, ArgStringList &Arguments,
11991199
StringRef LinuxLibName,
12001200
const ToolChain &TC) {
12011201
SmallString<128> P;
1202-
getClangLibraryPathOnLinux(P);
1202+
getClangLibraryPathOnLinux(P, Args, TC);
12031203
llvm::sys::path::append(P, LinuxLibName);
12041204
Arguments.push_back(Args.MakeArgString(P));
12051205
}

0 commit comments

Comments
 (0)