Compare commits
2 Commits
e9b005d50a
...
9e93a9cf39
Author | SHA1 | Date |
---|---|---|
Sebastien Bourdeauducq | 9e93a9cf39 | |
Sebastien Bourdeauducq | 9f4538555e |
|
@ -21,8 +21,13 @@ rec {
|
||||||
cmakeFlags = oa.cmakeFlags ++ ["-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=RISCV"];
|
cmakeFlags = oa.cmakeFlags ++ ["-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=RISCV"];
|
||||||
});
|
});
|
||||||
rustc = (pkgs.rustc.overrideAttrs(oa: {
|
rustc = (pkgs.rustc.overrideAttrs(oa: {
|
||||||
name = oa.name + "-riscv";
|
name = "${oa.pname}-${oa.version}-riscv";
|
||||||
patches = oa.patches ++ [ ./compilers/rustc-riscv32i.patch ];
|
patches = oa.patches ++ [ ./compilers/rustc-riscv32i.patch ];
|
||||||
})).override { inherit llvm_7; };
|
})).override {
|
||||||
|
inherit llvm_7;
|
||||||
|
pkgsBuildBuild = pkgs.pkgsBuildBuild // { inherit llvm_7; };
|
||||||
|
pkgsBuildHost = pkgs.pkgsBuildHost // { inherit llvm_7; };
|
||||||
|
pkgsBuildTarget = pkgs.pkgsBuildTarget // { inherit llvm_7; };
|
||||||
|
};
|
||||||
rust-riscv32i-crates = pkgs.callPackage ./compilers/rust-riscv32i-crates.nix { inherit rustc; };
|
rust-riscv32i-crates = pkgs.callPackage ./compilers/rust-riscv32i-crates.nix { inherit rustc; };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue