diff options
author | Cem Keylan <cem@ckyln.com> | 2020-03-04 10:54:29 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-03-04 10:54:29 +0300 |
commit | c918cf961d3aa6f7d5779ad1dbcf293d516d5453 (patch) | |
tree | 6b41d731d6e1f4753d456063911eda39c596a689 /extra/rust/build | |
parent | e41336d5af0464e9f28045429196d5f6b4babf92 (diff) | |
download | repository-c918cf961d3aa6f7d5779ad1dbcf293d516d5453.tar.gz |
rust: bump to 1.41.1
Diffstat (limited to 'extra/rust/build')
-rwxr-xr-x | extra/rust/build | 55 |
1 files changed, 31 insertions, 24 deletions
diff --git a/extra/rust/build b/extra/rust/build index f918b150..1acbb91b 100755 --- a/extra/rust/build +++ b/extra/rust/build @@ -1,21 +1,19 @@ #!/bin/sh -e +patch -p1 < musl.patch + # This package mimics the download process of rust's 'x.py' # bootstrap library to allow for the removal of the internet -# connection requirement per build further enabling checksums -# and signature verification by KISS. +# connection requirement per build. { - cache_dir=build/cache/2019-12-19 - mkdir -p "$cache_dir" + mkdir -p "${cache_dir:=build/cache/2019-12-19}" for tarball in *.tar.xz\?no-extract; do mv -f "$tarball" "$cache_dir/${tarball%%\?no-extract}" done } -patch -p1 < musl.patch - -# 'rust' checksums files in 'vendor/', but we patch a few files. +# 'rust' checksums files in 'vendor/', but we patch a few. for vendor in libc openssl-sys; do sed -i 's/\("files":{\)[^}]*/\1/' "vendor/$vendor/.cargo-checksum.json" done @@ -25,32 +23,41 @@ cat > config.toml <<EOF link-shared = true [build] -build = "x86_64-unknown-linux-musl" -host = [ "x86_64-unknown-linux-musl" ] +build = "x86_64-unknown-linux-musl" +host = [ "x86_64-unknown-linux-musl" ] target = [ "x86_64-unknown-linux-musl" ] -docs = false -extended = true -submodules = false -python = "python3" -locked-deps = true -vendor = true + +docs = false +compiler-docs = false +extended = true +submodules = false +python = "python3" +locked-deps = true +vendor = true +sanitizers = false +profiler = false +full-bootstrap = false [install] prefix = "/usr" [rust] -channel = "stable" -rpath = false -codegen-units = 1 -debuginfo-level = 0 -backtrace = false -jemalloc = false -codegen-tests = false +channel = "stable" +rpath = false +codegen-units = 1 +debuginfo-level = 0 +debug = false +backtrace = false +jemalloc = false +debug-assertions = false +codegen-tests = false [target.x86_64-unknown-linux-musl] llvm-config = "/usr/bin/llvm-config" -crt-static = false +crt-static = false EOF +export DESTDIR="$1" + python3 ./x.py build -j "$(nproc)" -DESTDIR="$1" python3 ./x.py install +python3 ./x.py install |