summaryrefslogtreecommitdiff
path: root/repo/devel/rustc.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-02 16:25:19 +0000
committerdavidovski <david@davidovski.xyz>2022-03-02 16:25:19 +0000
commit92a76bb80efda3fcb96cb0a990ae5bfa658449d1 (patch)
treef935c158bc695fdf3ea5806bc5f1c30f2d99e0e0 /repo/devel/rustc.xibuild
parent6b3593e13e688d558be05846d1e2d9acf6e97c71 (diff)
changed coreutils to sbase
Diffstat (limited to 'repo/devel/rustc.xibuild')
-rw-r--r--repo/devel/rustc.xibuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/repo/devel/rustc.xibuild b/repo/devel/rustc.xibuild
index 67f1583..e575ec7 100644
--- a/repo/devel/rustc.xibuild
+++ b/repo/devel/rustc.xibuild
@@ -1,6 +1,6 @@
#!/bin/sh
-MAKEDEPS="cmake "
+MAKEDEPS="cmake llvm"
DEPS="curl gcc libssh2"
PKG_VER=1.58.1
@@ -8,10 +8,10 @@ SOURCE=https://static.rust-lang.org/dist/rustc-$PKG_VER-src.tar.gz
DESC="Systems programming language focused on safety, speed and concurrency"
prepare () {
- mkdir -pv $PKG_DEST/opt/rustc-$PKG_VER &&
- ln -svfin rustc-$PKG_VER $PKG_DEST/opt/rustc
+ mkdir -p $PKG_DEST/opt/rustc-$PKG_VER &&
+ ln -sf rustc-$PKG_VER $PKG_DEST/opt/rustc
- cat << EOF > config.toml
+ cat > config.toml << EOF
# see config.toml.example for more possible options
[llvm]
@@ -47,6 +47,9 @@ codegen-tests = false
# get a trace if there is an Internal Compiler Exception
backtrace-on-ice = true
+[target.x86_64-unknown-linux-musl]
+llvm-config = "/usr/bin/llvm-config"
+
EOF
}
@@ -64,7 +67,7 @@ package () {
chown -R root:root install &&
cp -a install/* $PKG_DEST
- mkdir -pv $PKG_DEST/etc/profile.d/
+ mkdir -p $PKG_DEST/etc/profile.d/
cat > $PKG_DEST/etc/profile.d/rustc.sh << "EOF"
# Begin /etc/profile.d/rustc.sh
@@ -72,7 +75,7 @@ pathprepend /opt/rustc/bin PATH
# End /etc/profile.d/rustc.sh
EOF
- mkdir -pv $PKG_DEST/etc/ld.so.conf.d
+ mkdir -p $PKG_DEST/etc/ld.so.conf.d
cat >> $PKG_DEST/etc/ld.so.conf.d/rustc.conf << EOF
# Begin rustc addition