From 4f96ed41ca789765112f520b79e52a663a6e7731 Mon Sep 17 00:00:00 2001 From: kandrelczyk Date: Fri, 11 Jul 2025 09:52:37 +0200 Subject: [PATCH] add #[used] to __TAURI_BUNDLE_TYPE so that it's not stripped in release builds (#13808) --- crates/tauri-utils/src/platform.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/tauri-utils/src/platform.rs b/crates/tauri-utils/src/platform.rs index 559a880cc..a75bf088c 100644 --- a/crates/tauri-utils/src/platform.rs +++ b/crates/tauri-utils/src/platform.rs @@ -347,6 +347,7 @@ fn resource_dir_from>( // Variable holding the type of bundle the executable is stored in. This is modified by binary // patching during build +#[used] #[no_mangle] #[cfg_attr(not(target_vendor = "apple"), link_section = ".taubndl")] #[cfg_attr(target_vendor = "apple", link_section = "__DATA,taubndl")]