Skip to content

Commit

Permalink
Pass /machine:arm64ec to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaoliello committed Dec 14, 2023
1 parent 8011161 commit 7616599
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3011,10 +3011,14 @@ impl Build {

if lib.is_empty() {
name = String::from("lib.exe");
match windows_registry::find(&target, "lib.exe") {
let mut cmd = match windows_registry::find(&target, "lib.exe") {
Some(t) => t,
None => self.cmd("lib.exe"),
};
if target.contains("arm64ec") {
cmd.arg("/machine:arm64ec");
}
cmd
} else {
name = lib;
self.cmd(&name)
Expand Down

0 comments on commit 7616599

Please sign in to comment.