From 2a38be3704dcb08e93ff4d0bcff2f818f68fbc38 Mon Sep 17 00:00:00 2001 From: John Dallaway Date: Fri, 1 Aug 2025 15:49:27 +0100 Subject: [PATCH] Add LLVM clang '-emit-llvm' MBS option Allows the user to configure clang to generate object code or LLVM bitcode. The previous behaviour (bitcode generation) remains the default. --- .../plugin.properties | 3 + .../plugin.xml | 67 +++++++++++++++++-- 2 files changed, 66 insertions(+), 4 deletions(-) diff --git a/llvm/org.eclipse.cdt.managedbuilder.llvm.ui/plugin.properties b/llvm/org.eclipse.cdt.managedbuilder.llvm.ui/plugin.properties index e75ba9126ad..14430668fd7 100644 --- a/llvm/org.eclipse.cdt.managedbuilder.llvm.ui/plugin.properties +++ b/llvm/org.eclipse.cdt.managedbuilder.llvm.ui/plugin.properties @@ -173,6 +173,9 @@ Option.Posix.Linker.native=Create native binary (with LLVM native code generator Option.Posix.Linker.nativeCBackend=Create native binary (with C backend code generator) Option.Posix.Static.Compiler.Flags=Static Compiler Flags +Option.Llvm.Clang.EmitLlvm.name=Emit LLVM IR (-emit-llvm) +Option.Llvm.Clang.EmitLlvm.tip=Generate LLVM bitcode (not object code) + Option.Llvm.printStats=Print statistics Option.Llvm.Archiver.Flags=Archiver flags Option.Llvm.Llc.Flags=LLC flags diff --git a/llvm/org.eclipse.cdt.managedbuilder.llvm.ui/plugin.xml b/llvm/org.eclipse.cdt.managedbuilder.llvm.ui/plugin.xml index 8e18a2ae13d..fbefb078f99 100644 --- a/llvm/org.eclipse.cdt.managedbuilder.llvm.ui/plugin.xml +++ b/llvm/org.eclipse.cdt.managedbuilder.llvm.ui/plugin.xml @@ -1,5 +1,18 @@ + + + + + + + + + + + + + + + +