From d2074173b76edef4aec9101cf262a2c98cdd89fa Mon Sep 17 00:00:00 2001 From: Cooper-X-Oak Date: Fri, 1 May 2026 00:00:47 +0800 Subject: [PATCH] fix(windows-gnu): suppress MinGW auto-exports for cdylib --- .cargo/config.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..314f86e4 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,4 @@ +[target.x86_64-pc-windows-gnu] +# MinGW's PE linker auto-exports Rust symbols from the desktop-only cdylib, +# which overflows the export ordinal table during GNU builds/tests. +rustflags = ["-C", "link-arg=-Wl,--exclude-all-symbols"]