File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -698,6 +698,12 @@ impl Config {
698
698
println ! ( "cargo::rustc-link-lib=static=hal" ) ;
699
699
println ! ( "cargo::rustc-link-lib=static=wmilib" ) ;
700
700
701
+ // Emit ARM64-specific libraries to link to derived from
702
+ // WindowsDriver.arm64.props
703
+ if self . cpu_architecture == CpuArchitecture :: Arm64 {
704
+ println ! ( "cargo::rustc-link-lib=static=arm64rt" ) ;
705
+ }
706
+
701
707
// Linker arguments derived from WindowsDriver.KernelMode.props in Ni(22H2) WDK
702
708
println ! ( "cargo::rustc-cdylib-link-arg=/DRIVER" ) ;
703
709
println ! ( "cargo::rustc-cdylib-link-arg=/NODEFAULTLIB" ) ;
@@ -717,6 +723,12 @@ impl Config {
717
723
println ! ( "cargo::rustc-link-lib=static=WdfLdr" ) ;
718
724
println ! ( "cargo::rustc-link-lib=static=WdfDriverEntry" ) ;
719
725
726
+ // Emit ARM64-specific libraries to link to derived from
727
+ // WindowsDriver.arm64.props
728
+ if self . cpu_architecture == CpuArchitecture :: Arm64 {
729
+ println ! ( "cargo::rustc-link-lib=static=arm64rt" ) ;
730
+ }
731
+
720
732
// Linker arguments derived from WindowsDriver.KernelMode.props in Ni(22H2) WDK
721
733
println ! ( "cargo::rustc-cdylib-link-arg=/DRIVER" ) ;
722
734
println ! ( "cargo::rustc-cdylib-link-arg=/NODEFAULTLIB" ) ;
You can’t perform that action at this time.
0 commit comments