Skip to content

Commit

Permalink
Unify Windows envs in build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Mar 30, 2022
1 parent 0f69bd6 commit 47839e7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions psm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,28 @@ fn find_assembly(
// is not supported in Windows. For x86_64 the implementation actually works locally,
// but failed tests in CI (???). Might want to have a feature for experimental support
// here.
("x86", _, "windows", "msvc") => {
("x86", _, "windows", _) => {
if masm {
Some(("src/arch/x86_msvc.asm", false))
} else {
Some(("src/arch/x86_windows_gnu.s", false))
}
}
("x86_64", _, "windows", "msvc") => {
("x86_64", _, "windows", _) => {
if masm {
Some(("src/arch/x86_64_msvc.asm", false))
} else {
Some(("src/arch/x86_64_windows_gnu.s", false))
}
}
("arm", _, "windows", "msvc") => Some(("src/arch/arm_armasm.asm", false)),
("aarch64", _, "windows", "msvc") => {
("aarch64", _, "windows", _) => {
if masm {
Some(("src/arch/aarch64_armasm.asm", false))
} else {
Some(("src/arch/aarch_aapcs64.s", false))
}
}
("x86", _, "windows", _) => Some(("src/arch/x86_windows_gnu.s", false)),
("x86_64", _, "windows", _) => Some(("src/arch/x86_64_windows_gnu.s", false)),
("x86", _, _, _) => Some(("src/arch/x86.s", true)),
("x86_64", _, _, _) => Some(("src/arch/x86_64.s", true)),
("arm", _, _, _) => Some(("src/arch/arm_aapcs.s", true)),
Expand Down

0 comments on commit 47839e7

Please sign in to comment.