Skip to content

Commit 4f96ed4

Browse files
authored
add #[used] to __TAURI_BUNDLE_TYPE so that it's not stripped in release builds (#13808)
1 parent 24eb2b1 commit 4f96ed4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/tauri-utils/src/platform.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ fn resource_dir_from<P: AsRef<std::path::Path>>(
347347

348348
// Variable holding the type of bundle the executable is stored in. This is modified by binary
349349
// patching during build
350+
#[used]
350351
#[no_mangle]
351352
#[cfg_attr(not(target_vendor = "apple"), link_section = ".taubndl")]
352353
#[cfg_attr(target_vendor = "apple", link_section = "__DATA,taubndl")]

0 commit comments

Comments
 (0)