mark riscv rustc

This commit is contained in:
Sebastien Bourdeauducq 2019-05-14 19:05:30 +08:00
parent 677ddefff2
commit e9b005d50a

View File

@ -21,6 +21,7 @@ rec {
cmakeFlags = oa.cmakeFlags ++ ["-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=RISCV"];
});
rustc = (pkgs.rustc.overrideAttrs(oa: {
name = oa.name + "-riscv";
patches = oa.patches ++ [ ./compilers/rustc-riscv32i.patch ];
})).override { inherit llvm_7; };
rust-riscv32i-crates = pkgs.callPackage ./compilers/rust-riscv32i-crates.nix { inherit rustc; };