Skip to content

Commit fc95645

Browse files
committed
[gn] port cb7690a (ntdll dep)
1 parent d099d6c commit fc95645

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ static_library("Support") {
190190
if (current_os == "linux" || current_os == "android") {
191191
libs += [ "dl" ]
192192
} else if (current_os == "win") {
193-
libs = [ "ws2_32.lib" ]
193+
libs = [
194+
"ntdll.lib",
195+
"ws2_32.lib",
196+
]
194197

195198
# Delay load shell32.dll if possible to speed up process startup.
196199
libs += [ "delayimp.lib" ]

llvm/utils/gn/secondary/llvm/tools/llvm-config/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ write_cmake_config("BuildVariables.inc") {
4646
if (host_os == "win") {
4747
# uuid.lib for FOLDERID_Profile in lib/Support/Windows/Path.inc.
4848
# advapi32.lib for CryptAcquireContextW in lib/Support/Windows/Path.inc.
49-
system_libs = "psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib ws2_32.lib"
49+
system_libs = "psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib ws2_32.lib ntdll.lib"
5050
} else {
5151
system_libs += "-lm"
5252
if (host_os == "linux") {

0 commit comments

Comments
 (0)