[llvm] fc95645 - [gn] port cb7690af09b95 (ntdll dep)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 7 07:48:14 PDT 2024


Author: Nico Weber
Date: 2024-06-07T10:47:51-04:00
New Revision: fc95645e37f244c2fc155f1ee51047f90329e8c1

URL: https://github.com/llvm/llvm-project/commit/fc95645e37f244c2fc155f1ee51047f90329e8c1
DIFF: https://github.com/llvm/llvm-project/commit/fc95645e37f244c2fc155f1ee51047f90329e8c1.diff

LOG: [gn] port cb7690af09b95 (ntdll dep)

Added: 
    

Modified: 
    llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
    llvm/utils/gn/secondary/llvm/tools/llvm-config/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
index 0d4725716191d..ee5905ae5a7d2 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
@@ -190,7 +190,10 @@ static_library("Support") {
   if (current_os == "linux" || current_os == "android") {
     libs += [ "dl" ]
   } else if (current_os == "win") {
-    libs = [ "ws2_32.lib" ]
+    libs = [
+      "ntdll.lib",
+      "ws2_32.lib",
+    ]
 
     # Delay load shell32.dll if possible to speed up process startup.
     libs += [ "delayimp.lib" ]

diff  --git a/llvm/utils/gn/secondary/llvm/tools/llvm-config/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-config/BUILD.gn
index 711e4e3b43151..ddf0e55b4f00f 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-config/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-config/BUILD.gn
@@ -46,7 +46,7 @@ write_cmake_config("BuildVariables.inc") {
   if (host_os == "win") {
     # uuid.lib for FOLDERID_Profile in lib/Support/Windows/Path.inc.
     # advapi32.lib for CryptAcquireContextW in lib/Support/Windows/Path.inc.
-    system_libs = "psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib ws2_32.lib"
+    system_libs = "psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib ws2_32.lib ntdll.lib"
   } else {
     system_libs += "-lm"
     if (host_os == "linux") {


        


More information about the llvm-commits mailing list