2019-06-06 12:05:48 +08:00
|
|
|
self: super:
|
2019-06-09 00:05:40 +08:00
|
|
|
rec {
|
2019-06-06 12:05:48 +08:00
|
|
|
llvm_7 = super.llvm_7.overrideAttrs(oa: {
|
|
|
|
name = oa.name + "-riscv";
|
|
|
|
cmakeFlags = oa.cmakeFlags ++ ["-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=RISCV"];
|
|
|
|
});
|
2019-06-08 19:31:41 +08:00
|
|
|
rustc = super.rustc.overrideAttrs(oa: {
|
|
|
|
patches = oa.patches ++ [ ./compilers/rustc-riscv32i.patch ];
|
|
|
|
});
|
2019-06-09 00:05:40 +08:00
|
|
|
rustPlatform = super.makeRustPlatform { inherit rustc; inherit (super) cargo; };
|
2019-06-06 12:05:48 +08:00
|
|
|
}
|