Skip to content

Commit

Permalink
Merge pull request #134946 from dermetfan/rust-target-windows
Browse files Browse the repository at this point in the history
fix toRustTarget for windows
  • Loading branch information
Timothy DeHerrera authored Aug 20, 2021
2 parents d212eb4 + 3bdfca4 commit 2b7e9a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion pkgs/build-support/rust/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
, importCargoLock
, rustPlatform
, callPackage
, remarshal
, git
, rust
, rustc
Expand Down
5 changes: 4 additions & 1 deletion pkgs/development/compilers/rust/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@
"armv5tel" = "armv5te";
"riscv64" = "riscv64gc";
}.${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 2b7e9a6

Please sign in to comment.