[clang] [llvm] [clang][MBD] set up module build daemon infrastructure (PR #67562)

Steven Wu via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 08:57:18 PDT 2024


================
@@ -0,0 +1,25 @@
+// Check that a clang invocation can spawn and handshake with a module build daemon
+
+// RUN: %kill-process "-cc1modbuildd mbd-handshake"
+// RUN: rm -rf mbd-handshake %t
+// RUN: split-file %s %t
+
+//--- main.c
+int main() {return 0;}
+
+// RUN: %clang -fmodule-build-daemon=mbd-handshake -Rmodule-build-daemon %t/main.c &> %t/output-new || true
----------------
cachemeifyoucan wrote:

I don't need to see an example or a testcase as I understand that would might be hard to write. I just want to see the implementation of the daemon that does something after the handshake (another handshake is fine) so I can reason if the daemon is leaked if the client crashed in the middle.

https://github.com/llvm/llvm-project/pull/67562


More information about the llvm-commits mailing list