This commit is contained in:
nora 2025-02-01 16:05:27 +01:00
parent dc6ef2108d
commit cec97ff44d
3 changed files with 192 additions and 54 deletions

View file

@ -1,3 +1,4 @@
SHELL = bash
RUSTC = rustc --target x86_64-pc-windows-msvc -Cpanic=abort -Clinker=lld-link -Clink-arg=/NODEFAULTLIB -Clink-arg=/debug:none -Cdebuginfo=0
build: empty_exe.exe one_dll.exe
@ -13,4 +14,5 @@ small_dll.dll: small_dll.rs
.PHONY: clean
clean:
rm *.exe *.pdb *.dll
shopt -s nullglob
rm *.exe *.pdb *.dll *.lib

View file

@ -9,7 +9,7 @@ fn handle_panic(_: &core::panic::PanicInfo<'_>) -> ! {
#[no_mangle]
pub extern "C" fn my_export() -> u32 {
42
43
}
#[no_mangle]