rust-nex/build-edition.sh
Maple Nebel a75b155f6c
All checks were successful
Build and Test / mario-tennis (push) Successful in 3m12s
Build and Test / super-mario-maker (push) Successful in 7m39s
Build and Test / wii-sports-club (push) Successful in 8m3s
Build and Test / sonic-transformed (push) Successful in 8m44s
Build and Test / fast-racing-neo (push) Successful in 8m54s
Build and Test / wii-u-chat (push) Successful in 9m35s
Build and Test / friends (push) Successful in 10m32s
Build and Test / splatoon (push) Successful in 11m12s
Build and Test / puyopuyo (push) Successful in 11m28s
Build and Test / splatoon-testfire (push) Successful in 11m53s
Build and Test / minecraft-wiiu (push) Successful in 12m45s
fix linking
2026-05-29 11:09:07 +02:00

19 lines
571 B
Shell
Executable file

#!/usr/bin/env bash
set -euo pipefail
if [ -z ${EDITION+x} ]; then
EDITION=$1
fi
# comma seperated list of features for the specified version
source ./buildscripts/common.sh
echo building $EDITION
echo FEATURES:
echo $EDITION_FEATURES
if [[ ! -v RNEX_STATIC ]]; then
cargo build --release --features "$EDITION_FEATURES"
else
OPENSSL_LIB_DIR=/usr/lib OPENSSL_INCLUDE_DIR=/usr/include/openssl OPENSSL_STATIC=1 RUSTFLAGS="-C relocation-model=static -C linker=ld.lld" cargo build --release --features "$EDITION_FEATURES" --target x86_64-unknown-linux-musl
fi