rust-riscv32i-crates: use external compiler_builtins
This commit is contained in:
parent
a0690fe0e2
commit
ec09c09cf3
@ -1,4 +1,12 @@
|
|||||||
{ stdenv, rustc }:
|
{ stdenv, rustc, fetchFromGitHub }:
|
||||||
|
let
|
||||||
|
compiler-builtins-src = fetchFromGitHub {
|
||||||
|
owner = "rust-lang-nursery";
|
||||||
|
repo = "compiler-builtins";
|
||||||
|
rev = "0.1.12";
|
||||||
|
sha256 = "0hkssvrh952kcz7w7aws3pqr05barg3qppqpji641b35xpbg9gyg";
|
||||||
|
};
|
||||||
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "rust-riscv32i-crates";
|
name = "rust-riscv32i-crates";
|
||||||
src = rustc.src;
|
src = rustc.src;
|
||||||
@ -10,9 +18,9 @@ stdenv.mkDerivation {
|
|||||||
mkdir -p ''${destdir}
|
mkdir -p ''${destdir}
|
||||||
export RUSTC_BOOTSTRAP=1
|
export RUSTC_BOOTSTRAP=1
|
||||||
''${rustc} --crate-name core src/libcore/lib.rs
|
''${rustc} --crate-name core src/libcore/lib.rs
|
||||||
''${rustc} --crate-name alloc src/liballoc/lib.rs
|
''${rustc} --crate-name compiler_builtins ${compiler-builtins-src}/src/lib.rs --cfg 'feature="compiler-builtins"' --cfg 'feature="mem"'
|
||||||
'';
|
'';
|
||||||
# ''${rustc} --crate-name compiler_builtins src/libcompiler_builtins/src/lib.rs --cfg 'feature="compiler-builtins"' --cfg 'feature="mem"'
|
# ''${rustc} --crate-name alloc src/liballoc/lib.rs
|
||||||
# ''${rustc} --crate-name libc ${./libc_mini.rs}
|
# ''${rustc} --crate-name libc ${./libc_mini.rs}
|
||||||
# ''${rustc} --crate-name unwind src/libunwind/lib.rs
|
# ''${rustc} --crate-name unwind src/libunwind/lib.rs
|
||||||
# ''${rustc} --crate-name std src/libstd/lib.rs
|
# ''${rustc} --crate-name std src/libstd/lib.rs
|
||||||
|
Loading…
Reference in New Issue
Block a user