From 0e39d653c35c9e20a6e4b7e3452ca376200b4d53 Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Thu, 16 May 2024 22:12:49 +0100 Subject: [PATCH] Placeholder not found in ci builds, try to tell the compiler to not touch it --- src/Rust/src/shared/bundle.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Rust/src/shared/bundle.rs b/src/Rust/src/shared/bundle.rs index be6d4d2a..f85140e3 100644 --- a/src/Rust/src/shared/bundle.rs +++ b/src/Rust/src/shared/bundle.rs @@ -27,6 +27,9 @@ pub trait ReadSeek: Read + Seek {} impl ReadSeek for T {} #[cfg(target_os = "windows")] +#[used] +#[link_section = ".rodata"] +#[no_mangle] static BUNDLE_PLACEHOLDER: [u8; 48] = [ 0, 0, 0, 0, 0, 0, 0, 0, // 8 bytes for package offset 0, 0, 0, 0, 0, 0, 0, 0, // 8 bytes for package length