add #[used] to __TAURI_BUNDLE_TYPE so that it's not stripped in release builds (#13808)

This commit is contained in:
kandrelczyk
2025-07-11 09:52:37 +02:00
committed by GitHub
parent 24eb2b1cd3
commit 4f96ed41ca

View File

@@ -347,6 +347,7 @@ fn resource_dir_from<P: AsRef<std::path::Path>>(
// 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")]