From e28cbb2efac9ed6e56cd9ab6eb1a3f16810d575a Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 13 Oct 2026 03:54:49 +0000 Subject: feat: embed a statically linked LLVM execution engine Add EMBEDDED mode to run generated modules in-process without lli or PATH lookup. Link LLVM and support archives plus the C++ runtime statically, while retaining the system C runtime on Linux. Co-Authored-By: Claude Fable 5.1 --- include/cps/CodeGen.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/cps') diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index ae2f015..2c837fd 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -96,6 +96,7 @@ public: ~CodeGen(); void compile(const std::vector> &Statements); void print(llvm::raw_ostream &Output); + const llvm::Module &getModule() const { return *TheModule; } bool hadError() const { return HadError; } void reportError(const char *Fmt, ...); static bool isBuiltinName(const std::string &Name); -- cgit v1.3.1-4-g156e