Skip to content

Commit

Permalink
cross-profiles: set RUST_FLAGS&RUST_TARGET
Browse files Browse the repository at this point in the history
only added to platforms which support rust
  • Loading branch information
Rasmus Thomsen committed Oct 11, 2018
1 parent 567a64b commit 66c9178
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/cross-profiles/aarch64-musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ XBPS_CROSS_TRIPLET="aarch64-linux-musl"
XBPS_CROSS_CFLAGS="-march=armv8-a"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
XBPS_CROSS_FFLAGS=""
RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
RUST_TARGET="${XBPS_CROSS_TRIPLET}"
2 changes: 2 additions & 0 deletions common/cross-profiles/aarch64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ XBPS_CXXFLAGS="$XBPS_CFLAGS"
XBPS_CROSS_CFLAGS="-march=armv8-a"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
XBPS_CROSS_FFLAGS=""
RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
RUST_TARGET="${XBPS_CROSS_TRIPLET}"
2 changes: 2 additions & 0 deletions common/cross-profiles/armv6l-musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ XBPS_CROSS_TRIPLET="arm-linux-musleabihf"
XBPS_CROSS_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
XBPS_CROSS_FFLAGS=""
RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
RUST_TARGET="arm-unknown-linux-musleabihf"
2 changes: 2 additions & 0 deletions common/cross-profiles/armv6l.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ XBPS_CROSS_TRIPLET="arm-linux-gnueabihf"
XBPS_CROSS_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
XBPS_CROSS_FFLAGS=""
RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
RUST_TARGET="arm-unknown-linux-gnueabihf"
2 changes: 2 additions & 0 deletions common/cross-profiles/armv7l-musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ XBPS_CROSS_TRIPLET="armv7l-linux-musleabihf"
XBPS_CROSS_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
XBPS_CROSS_FFLAGS=""
RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
RUST_TARGET="armv7-unknown-linux-musleabihf"
3 changes: 3 additions & 0 deletions common/cross-profiles/armv7l.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ XBPS_CROSS_TRIPLET="armv7l-linux-gnueabihf"
XBPS_CROSS_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
XBPS_CROSS_FFLAGS=""
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
RUST_TARGET="armv7-unknown-linux-gnueabihf"
2 changes: 2 additions & 0 deletions common/cross-profiles/i686-musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ XBPS_CROSS_TRIPLET="i686-linux-musl"
XBPS_CROSS_CFLAGS="-march=i686"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
XBPS_CROSS_FFLAGS=""
RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
RUST_TARGET="i686-unknown-linux-musl"
2 changes: 2 additions & 0 deletions common/cross-profiles/i686.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ XBPS_CROSS_TRIPLET="i686-pc-linux-gnu"
XBPS_CROSS_CFLAGS="-march=i686"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
XBPS_CROSS_FFLAGS=""
RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
RUST_TARGET="i686-unknown-linux-gnu"
2 changes: 2 additions & 0 deletions common/cross-profiles/x86_64-musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ XBPS_CROSS_TRIPLET="x86_64-linux-musl"
XBPS_CROSS_CFLAGS="-mtune=generic"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
XBPS_CROSS_FFLAGS=""
RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
RUST_TARGET="${XBPS_CROSS_TRIPLET}"

0 comments on commit 66c9178

Please sign in to comment.