From e19a72a20d5cb35d6f3873f308a3a98d7046d762 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 25 Jan 2025 15:41:29 -0500 Subject: Fix statically linking PDB import plugin for demo builds --- Cargo.toml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 41a208d8..13eccddc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ members = [ "plugins/dwarf/shared", "plugins/idb_import", "plugins/pdb-ng", + "plugins/pdb-ng/demo", "plugins/warp" ] @@ -24,5 +25,15 @@ binaryninja = { path = "rust" } binaryninjacore-sys = { path = "rust/binaryninjacore-sys" } [profile.release] -lto = true +lto = "thin" debug = "full" + +# Disable LTO on demo builds, it will export `rust_eh_personality` +[profile.release-demo] +inherits = "release" +lto = false + +# Disable LTO on demo builds, it will export `rust_eh_personality` +[profile.dev-demo] +inherits = "dev" +lto = false \ No newline at end of file -- cgit v1.3.1