Skip to content

Commit 7926622

Browse files
committed
backend: improve minimization
1 parent 52a6558 commit 7926622

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
RELEASE_DIR:=release
22
DEBUG_DIR:=debug
33

4-
#BACKEND_WINDOWS32_RUST_FLAGS:=--remap-path-prefix ${HOME}=/foo -Ctarget-feature=+crt-static
5-
BACKEND_WINDOWS64_RUST_FLAGS:=--remap-path-prefix ${HOME}=/foo -Ctarget-feature=+crt-static
4+
#BACKEND_WINDOWS32_RUST_FLAGS:=--remap-path-prefix ${HOME}=/foo -Ctarget-feature=+crt-static -Zlocation-detail=none
5+
BACKEND_WINDOWS64_RUST_FLAGS:=--remap-path-prefix ${HOME}=/foo -Ctarget-feature=+crt-static -Zlocation-detail=none
66
#BACKEND_WINDOWS32_BUILD_FLAGS:=-Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
77
BACKEND_WINDOWS64_BUILD_FLAGS:=-Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
88

backend/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ debug = false
3535
strip = true
3636
lto = true
3737
panic = "abort"
38+
codegen-units = 1
3839

3940
[features]
4041
log = [ "common/log", "dep:log" ]

backend/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ pub extern "system" fn Main() {
234234

235235
#[no_mangle]
236236
#[allow(non_snake_case, unused_variables, clippy::missing_safety_doc)]
237-
pub unsafe extern "system" fn DllMain(
237+
pub extern "system" fn DllMain(
238238
dll_module: ws::Win32::Foundation::HINSTANCE,
239239
call_reason: u32,
240240
_reserverd: *mut ffi::c_void,

0 commit comments

Comments
 (0)