diff --git a/common/build-profiles/aarch64-musl.sh b/common/build-profiles/aarch64-musl.sh index 795db9f870b..8e52f1eaee0 100644 --- a/common/build-profiles/aarch64-musl.sh +++ b/common/build-profiles/aarch64-musl.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-march=armv8-a" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="aarch64-unknown-linux-musl" +XBPS_RUST_TARGET="$XBPS_TRIPLET" diff --git a/common/build-profiles/aarch64.sh b/common/build-profiles/aarch64.sh index 0c4cd3dafba..233445d8f2c 100644 --- a/common/build-profiles/aarch64.sh +++ b/common/build-profiles/aarch64.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-march=armv8-a" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="aarch64-unknown-linux-gnu" +XBPS_RUST_TARGET="$XBPS_TRIPLET" diff --git a/common/build-profiles/armv6l-musl.sh b/common/build-profiles/armv6l-musl.sh index f58452e44d0..1c94bf70d13 100644 --- a/common/build-profiles/armv6l-musl.sh +++ b/common/build-profiles/armv6l-musl.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="armv6l-linux-musleabihf" +XBPS_RUST_TARGET="arm-unknown-linux-musleabihf" diff --git a/common/build-profiles/armv6l.sh b/common/build-profiles/armv6l.sh index a08c589d891..384e328a6e6 100644 --- a/common/build-profiles/armv6l.sh +++ b/common/build-profiles/armv6l.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="armv6l-unknown-linux-gnueabihf" +XBPS_RUST_TARGET="arm-unknown-linux-gnueabihf" diff --git a/common/build-profiles/armv7l-musl.sh b/common/build-profiles/armv7l-musl.sh index a8fadb347a7..caadaee541a 100644 --- a/common/build-profiles/armv7l-musl.sh +++ b/common/build-profiles/armv7l-musl.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard" XBPS_TARGET_CXXFLAGS="$XBPS_CXXFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="armv7l-linux-musleabihf" +XBPS_RUST_TARGET="armv7-unknown-linux-musleabihf" diff --git a/common/build-profiles/armv7l.sh b/common/build-profiles/armv7l.sh index bde53ea67ce..89c8badd2af 100644 --- a/common/build-profiles/armv7l.sh +++ b/common/build-profiles/armv7l.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="armv7l-unknown-linux-gnueabihf" +XBPS_RUST_TARGET="armv7-unknown-linux-gnueabihf" diff --git a/common/build-profiles/i686-musl.sh b/common/build-profiles/i686-musl.sh index f3bf32cc506..c690a2e211b 100644 --- a/common/build-profiles/i686-musl.sh +++ b/common/build-profiles/i686-musl.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-mtune=i686" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="i686-pc-linux-musl" +XBPS_RUST_TARGET="i686-unknown-linux-musl" diff --git a/common/build-profiles/i686.sh b/common/build-profiles/i686.sh index ea38e8fa6e5..550bbf5b9f6 100644 --- a/common/build-profiles/i686.sh +++ b/common/build-profiles/i686.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-mtune=i686" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="i686-pc-linux-gnu" +XBPS_RUST_TARGET="i686-unknown-linux-gnu" diff --git a/common/build-profiles/x86_64-musl.sh b/common/build-profiles/x86_64-musl.sh index 7dbb0f5c4bf..303f747bd3e 100644 --- a/common/build-profiles/x86_64-musl.sh +++ b/common/build-profiles/x86_64-musl.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-mtune=generic" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="x86_64-unknown-linux-musl" +XBPS_RUST_TARGET="${XBPS_TRIPLET}" diff --git a/common/build-profiles/x86_64.sh b/common/build-profiles/x86_64.sh index ff9dd9902f2..4f0647f1976 100644 --- a/common/build-profiles/x86_64.sh +++ b/common/build-profiles/x86_64.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-mtune=generic" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="x86_64-unknown-linux-gnu" +XBPS_RUST_TARGET="${XBPS_TRIPLET}"