mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
add #[used] to __TAURI_BUNDLE_TYPE so that it's not stripped in release builds (#13808)
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user