From 47f5b52023948eae42c40f8536251663df647243 Mon Sep 17 00:00:00 2001 From: Thomas Batten Date: Wed, 23 Jan 2019 09:43:22 +1030 Subject: [PATCH] common: Add rust target to ppc build/cross profiles --- common/build-profiles/ppc-musl.sh | 1 + common/build-profiles/ppc.sh | 1 + common/cross-profiles/ppc-musl.sh | 2 ++ common/cross-profiles/ppc.sh | 2 ++ 4 files changed, 6 insertions(+) diff --git a/common/build-profiles/ppc-musl.sh b/common/build-profiles/ppc-musl.sh index c247c9ad3f6..af9799106fe 100644 --- a/common/build-profiles/ppc-musl.sh +++ b/common/build-profiles/ppc-musl.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-mcpu=powerpc -mtune=G4 -mlong-double-64" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="powerpc-linux-musl" +XBPS_RUST_TARGET="powerpc-unknown-linux-musl" diff --git a/common/build-profiles/ppc.sh b/common/build-profiles/ppc.sh index e1fce9f87d0..ae1525f9c78 100644 --- a/common/build-profiles/ppc.sh +++ b/common/build-profiles/ppc.sh @@ -2,3 +2,4 @@ XBPS_TARGET_CFLAGS="-mcpu=powerpc -mtune=G4" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" XBPS_TARGET_FFLAGS="" XBPS_TRIPLET="powerpc-linux-gnu" +XBPS_RUST_TARGET="powerpc-unknown-linux-gnu" diff --git a/common/cross-profiles/ppc-musl.sh b/common/cross-profiles/ppc-musl.sh index e34673f403f..321ea19beb6 100644 --- a/common/cross-profiles/ppc-musl.sh +++ b/common/cross-profiles/ppc-musl.sh @@ -5,3 +5,5 @@ XBPS_CROSS_TRIPLET="powerpc-linux-musl" XBPS_CROSS_CFLAGS="-mcpu=powerpc -mtune=G4 -mlong-double-64" XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS" XBPS_CROSS_FFLAGS="" +XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr" +XBPS_CROSS_RUST_TARGET="powerpc-unknown-linux-musl" diff --git a/common/cross-profiles/ppc.sh b/common/cross-profiles/ppc.sh index fed4f225cd5..1d97346d892 100644 --- a/common/cross-profiles/ppc.sh +++ b/common/cross-profiles/ppc.sh @@ -5,3 +5,5 @@ XBPS_CROSS_TRIPLET="powerpc-linux-gnu" XBPS_CROSS_CFLAGS="-mcpu=powerpc -mtune=G4" XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS" XBPS_CROSS_FFLAGS="" +XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr" +XBPS_CROSS_RUST_TARGET="powerpc-unknown-linux-gnu"