[llvm] 2a41498 - [gn] port 1c1edc2d34e1 and 78bbf2229d2a (lldb emscripten) (#224003)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 05:58:15 PDT 2026


Author: Nico Weber
Date: 2026-09-16T08:58:08-04:00
New Revision: 2a4149803d3fe72e28ddae2962e6cf1569330944

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

LOG: [gn] port 1c1edc2d34e1 and 78bbf2229d2a (lldb emscripten) (#224003)

Added: 
    

Modified: 
    llvm/utils/gn/secondary/lldb/source/Host/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/lldb/source/Host/BUILD.gn b/llvm/utils/gn/secondary/lldb/source/Host/BUILD.gn
index 4c0ea2ff7e9a5..29a16bd655d9a 100644
--- a/llvm/utils/gn/secondary/lldb/source/Host/BUILD.gn
+++ b/llvm/utils/gn/secondary/lldb/source/Host/BUILD.gn
@@ -98,9 +98,12 @@ static_library("Host") {
       "posix/LockFilePosix.cpp",
       "posix/MainLoopPosix.cpp",
       "posix/PipePosix.cpp",
-      "posix/ProcessLauncherPosixFork.cpp",
       "posix/Support.cpp",
     ]
+
+    if (current_os != "emscripten") {
+      sources += [ "posix/ProcessLauncherPosixFork.cpp" ]
+    }
   }
 
   if (current_os == "aix") {
@@ -126,6 +129,13 @@ static_library("Host") {
     # FIXME: Maybe define NO_XPC_SERVICES
   }
 
+  if (current_os == "emscripten") {
+    sources += [
+      "emscripten/Host.cpp",
+      "emscripten/HostInfoEmscripten.cpp",
+    ]
+  }
+
   if (current_os == "linux" || current_os == "android") {
     sources += [
       "linux/AbstractSocket.cpp",


        


More information about the llvm-commits mailing list