From 551738c693b52b8c383eab629fbc9d81d04d4c4b Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 22 Oct 2025 02:09:10 -0400 Subject: Add more plugins to free Adds WARP, DWARF Import and Objective-C plugins to free --- plugins/dwarf/dwarf_import/src/lib.rs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'plugins/dwarf/dwarf_import/src') diff --git a/plugins/dwarf/dwarf_import/src/lib.rs b/plugins/dwarf/dwarf_import/src/lib.rs index 8ad5e442..6e9626aa 100644 --- a/plugins/dwarf/dwarf_import/src/lib.rs +++ b/plugins/dwarf/dwarf_import/src/lib.rs @@ -756,8 +756,7 @@ impl CustomDebugInfoParser for DWARFParser { } } -#[no_mangle] -pub extern "C" fn CorePluginInit() -> bool { +fn plugin_init() { Logger::new("DWARF").init(); let settings = Settings::new(); @@ -820,5 +819,20 @@ pub extern "C" fn CorePluginInit() -> bool { ); DebugInfoParser::register("DWARF", DWARFParser {}); +} + +#[no_mangle] +#[allow(non_snake_case)] +#[cfg(not(feature = "demo"))] +pub extern "C" fn CorePluginInit() -> bool { + plugin_init(); + true +} + +#[no_mangle] +#[allow(non_snake_case)] +#[cfg(feature = "demo")] +pub extern "C" fn DwarfImportPluginInit() -> bool { + plugin_init(); true } -- cgit v1.3.1