Skip to content

Commit

Permalink
musl check
Browse files Browse the repository at this point in the history
  • Loading branch information
phoepsilonix committed Jan 24, 2024
1 parent 44a92f4 commit a44cb5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ _srcenv() {
cd "$srcdir/$pkgname-$pkgver"
export PKG_CONFIG_ALLOW_CROSS=1
export RUSTUP_TOOLCHAIN=stable
source <(cargo +nightly -Z unstable-options rustc --print cfg|grep -E "target_(arch|vendor|os|env)")
TARGET="${target_arch}-${target_vendor}-${target_os}-${target_env}"
rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n) | grep musl && TARGET=$(rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n)|grep musl|head -n1) || TARGET=$(rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n)|grep -v musl|head -n1)
#source <(cargo +nightly -Z unstable-options rustc --print cfg|grep -E "target_(arch|vendor|os|env)")
#TARGET="${target_arch}-${target_vendor}-${target_os}-${target_env}"
}

prepare() {
Expand Down

0 comments on commit a44cb5c

Please sign in to comment.