rustc: enable lld

This commit is contained in:
Sebastien Bourdeauducq 2019-06-05 23:05:15 +08:00
parent d02da47167
commit 14c7b4890c

View File

@ -23,6 +23,7 @@ rec {
rustc = (pkgs.rustc.overrideAttrs(oa: { rustc = (pkgs.rustc.overrideAttrs(oa: {
name = "${oa.pname}-${oa.version}-riscv"; name = "${oa.pname}-${oa.version}-riscv";
patches = oa.patches ++ [ ./compilers/rustc-riscv32i.patch ]; patches = oa.patches ++ [ ./compilers/rustc-riscv32i.patch ];
configureFlags = oa.configureFlags ++ [ "--enable-lld" ];
})).override { })).override {
inherit llvm_7; inherit llvm_7;
pkgsBuildBuild = pkgs.pkgsBuildBuild // { inherit llvm_7; }; pkgsBuildBuild = pkgs.pkgsBuildBuild // { inherit llvm_7; };