aboutsummaryrefslogtreecommitdiff
path: root/extra/rust/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-04-17 01:56:43 +0300
committerCem Keylan <cem@ckyln.com>2020-04-17 01:56:43 +0300
commit0f087cb7ddf5dc453108307a028dd53899243dd2 (patch)
treea8089715dd51e79d65d4d602eb089e7f250d3cb6 /extra/rust/build
parent6cb6a828e251c542426acc248ba9b43022c70d74 (diff)
downloadrepository-0f087cb7ddf5dc453108307a028dd53899243dd2.tar.gz
rust: drop from repository
Diffstat (limited to 'extra/rust/build')
-rwxr-xr-xextra/rust/build63
1 files changed, 0 insertions, 63 deletions
diff --git a/extra/rust/build b/extra/rust/build
deleted file mode 100755
index fa5c547c..00000000
--- a/extra/rust/build
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/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.
-{
- mkdir -p "${cache_dir:=build/cache/2020-02-27}"
-
- for tarball in *.tar.xz\?no-extract; do
- mv -f "$tarball" "$cache_dir/${tarball%%\?no-extract}"
- done
-}
-
-# '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
-
-cat > config.toml <<EOF
-[llvm]
-link-shared = true
-
-[build]
-build = "x86_64-unknown-linux-musl"
-host = [ "x86_64-unknown-linux-musl" ]
-target = [ "x86_64-unknown-linux-musl" ]
-
-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
-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
-EOF
-
-export DESTDIR="$1"
-
-python3 ./x.py build -j "$(nproc)"
-python3 ./x.py install