[win][arm64ec] Partial fix for raw-dylib-link-ordinal on Arm64EC

This commit is contained in:
Daniel Paoliello
2025-08-08 09:17:35 -07:00
parent 2886b36df4
commit dcc1605fba
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
LIBRARY exporter
EXPORTS
exported_function @13 NONAME
exported_variable @5 NONAME
exported_variable @5 NONAME DATA
print_exported_variable @9 NONAME

View File

@@ -11,7 +11,7 @@
//@ only-windows
use run_make_support::{cc, diff, is_windows_msvc, run, rustc};
use run_make_support::{cc, diff, extra_c_flags, is_windows_msvc, run, rustc};
// NOTE: build_native_dynamic lib is not used, as the special `def` files
// must be passed to the CC compiler.
@@ -24,6 +24,7 @@ fn main() {
cc().input("exporter.obj")
.arg("exporter.def")
.args(&["-link", "-dll", "-noimplib", "-out:exporter.dll"])
.args(extra_c_flags())
.run();
} else {
cc().arg("-v").arg("-c").out_exe("exporter.obj").input("exporter.c").run();