Skip to content

Commit

Permalink
Merge pull request #139697 from oxalica/bp/fix/to-rust-target
Browse files Browse the repository at this point in the history
[21.05] fix toRustTarget for windows
  • Loading branch information
Mic92 authored Sep 28, 2021
2 parents ce6b39b + c9049f7 commit 96bf839
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/development/compilers/rust/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@
"armv6l" = "arm";
"armv5tel" = "armv5te";
}.${cpu.name} or cpu.name;
vendor_ = platform.rustc.platform.vendor or {
"w64" = "pc";
}.${vendor.name} or vendor.name;
in platform.rustc.config
or "${cpu_}-${vendor.name}-${kernel.name}${lib.optionalString (abi.name != "unknown") "-${abi.name}"}";
or "${cpu_}-${vendor_}-${kernel.name}${lib.optionalString (abi.name != "unknown") "-${abi.name}"}";

# Returns the name of the rust target if it is standard, or the json file
# containing the custom target spec.
Expand Down

0 comments on commit 96bf839

Please sign in to comment.