fix(windows-gnu): suppress MinGW auto-exports for cdylib

This commit is contained in:
Cooper-X-Oak committed 2026-05-01 00:00:47 +08:00
1 parent 920a31fa0f
commit d2074173b7
1 file changed
+4
+4
View File
@@ -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"]