a52b20cc35
* remove docker build cruft - Simplified environment variable sourcing in build scripts by using a single build-env.sh file. - Updated Dockerfile to streamline the build process and reduce unnecessary comments. - Enhanced setup-cross-compilation.sh to directly set target and linker variables without temporary files. - Improved clarity and maintainability of build scripts. * fix setup-cross-compilation.sh - Updated the script to use a more concise syntax for exporting environment variables. - Improved readability by using echo and conditional checks for BINDGEN_EXTRA_CLANG_ARGS. - This change simplifies the script while maintaining functionality. * Refactor setup-cross-compilation.sh for improved readability - Changed the syntax for checking BINDGEN_EXTRA_CLANG_ARGS to use a conditional statement for clarity. - This enhances the script's maintainability while preserving its functionality.
13 lines
255 B
Bash
Executable File
13 lines
255 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
source /tmp/build-env.sh
|
|
|
|
echo "Building dependencies for target: $TARGET"
|
|
|
|
cargo build \
|
|
--target "$TARGET" \
|
|
--config "target.$TARGET.linker=\"$LINKER\"" \
|
|
--features odbc-static \
|
|
--profile superoptimized
|