summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-01-25 15:41:29 -0500
committerMason Reed <mason@vector35.com>2025-01-25 15:41:29 -0500
commite19a72a20d5cb35d6f3873f308a3a98d7046d762 (patch)
tree10abaa9bdee57ab6a3dee67b0a972a388725cefe /Cargo.toml
parent26ed2cdfb13591c63a52e978ead5eae0b6acb0c4 (diff)
Fix statically linking PDB import plugin for demo builds
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml13
1 files changed, 12 insertions, 1 deletions
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