mirror of
https://github.com/Noratrieb/portability.git
synced 2026-01-14 15:55:04 +01:00
dll
This commit is contained in:
parent
dc6ef2108d
commit
cec97ff44d
3 changed files with 192 additions and 54 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ fn handle_panic(_: &core::panic::PanicInfo<'_>) -> ! {
|
|||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn my_export() -> u32 {
|
||||
42
|
||||
43
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue