From cd3c09a5c2566d674680193042baf6474b6d0976 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sun, 18 Oct 2026 08:11:39 +0000 Subject: feat(driver): load the embedded C++ runtime into the JIT Co-Authored-By: Claude Opus 5.5 --- tools/driver/NativeCompiler.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/driver/NativeCompiler.h') diff --git a/tools/driver/NativeCompiler.h b/tools/driver/NativeCompiler.h index ffc38f1..54b690f 100644 --- a/tools/driver/NativeCompiler.h +++ b/tools/driver/NativeCompiler.h @@ -2,6 +2,8 @@ #include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringSet.h" +#include "llvm/Support/MemoryBuffer.h" +#include #include #include @@ -19,3 +21,6 @@ bool collectObjectSymbols(llvm::StringRef Path, llvm::StringSet<> &Out, std::str // Defined global symbols of the embedded C library (INCLUDE_OBJ "__libc"). bool collectLibcSymbols(llvm::StringSet<> &Out); + +// Owning copies of the embedded C++ and compiler-support static archives. +bool unpackCxxRuntime(std::vector> &Archives); -- cgit v1.3.1-4-g156e