Files
sqlpage--sqlpage/scripts/build-project.sh
T
2025-10-05 10:41:13 +02:00

20 lines
487 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Source the environment variables set by setup-cross-compilation.sh
TARGET="$(cat /tmp/TARGET)"
LINKER="$(cat /tmp/LINKER)"
echo "Building project for target: $TARGET"
# Build the project
touch src/main.rs
cargo build \
--target "$TARGET" \
--config "target.$TARGET.linker=\"$LINKER\"" \
--features odbc-static \
--profile superoptimized
# Move the binary to the expected location
mv "target/$TARGET/superoptimized/sqlpage" sqlpage.bin