Browse Source

rust fix

emacs-27
its-pointless 6 years ago
committed by Leonid Plyushch
parent
commit
b83c1132b7
  1. 16
      packages/rust/build.sh

16
packages/rust/build.sh

@ -43,22 +43,18 @@ termux_step_configure() {
} }
termux_step_make() { termux_step_make() {
$TERMUX_PKG_SRCDIR/x.py dist \ return 0;
--host $CARGO_TARGET_NAME \
--target $CARGO_TARGET_NAME \
--target wasm32-unknown-unknown || bash
} }
termux_step_make_install() { termux_step_make_install() {
local host_files_to_remove="$TERMUX_PREFIX/lib/rustlib/x86_64-unknown-linux-gnu \ STAGE=""
$TERMUX_PREFIX/lib/rustlib/manifest-rust-analysis-x86_64-unknown-linux-gnu \ if [ $TERMUX_ARCH = "x86_64" ]; then
$TERMUX_PREFIX/lib/rustlib/manifest-rust-std-x86_64-unknown-linux-gnu" STAGE=" --stage 1" ; fi
$TERMUX_PKG_SRCDIR/x.py install \ $TERMUX_PKG_SRCDIR/x.py install $STAGE \
--host $CARGO_TARGET_NAME \ --host $CARGO_TARGET_NAME \
--target $CARGO_TARGET_NAME \ --target $CARGO_TARGET_NAME \
--target wasm32-unknown-unknown && \ --target wasm32-unknown-unknown
rm -rf $host_files_to_remove
cd "$TERMUX_PREFIX/lib" cd "$TERMUX_PREFIX/lib"
ln -sf rustlib/$CARGO_TARGET_NAME/lib/*.so . ln -sf rustlib/$CARGO_TARGET_NAME/lib/*.so .

Loading…
Cancel
Save