From 9226e87baacece10ea4971a9588d46e30cc23492 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 16 Oct 2026 07:54:06 +0000 Subject: feat(driver): embed native compilation and link resources Link LLVM, the Clang driver and LLD statically, and embed native link inputs so executable generation needs no installed development toolchain. Keep glibc dynamically linked on Linux. Co-Authored-By: Claude Fable 5.1 --- tools/driver/NativeCompiler.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tools/driver/NativeCompiler.h (limited to 'tools/driver/NativeCompiler.h') diff --git a/tools/driver/NativeCompiler.h b/tools/driver/NativeCompiler.h new file mode 100644 index 0000000..17933e9 --- /dev/null +++ b/tools/driver/NativeCompiler.h @@ -0,0 +1,9 @@ +#pragma once + +#include "llvm/ADT/StringRef.h" + +namespace cps { class CodeGen; } + +// Generate a host executable without an external compiler, linker or SDK. +// Failure leaves any existing output intact and reports a diagnostic. +bool compileNative(const cps::CodeGen &CG, llvm::StringRef OutputPath); -- cgit v1.3.1-4-g156e