Skip to content

Commit 74955c6

Browse files
authored
Enable rust powerpc-unknown-linux-gnuspe for qoriq (#5879)
* py311, sabnzbd, homeassistant: Enable debug_symbols for qoriq * py311, sabnzbd, homeassistant: Enable debug_symbols also for x64 * py311: Force compiler LTO optimizations with exceptions - NOT when testing all wheels - NOT when including debug_info symbols - NOT when using PPC arch (fails on qoriq) * py311+sabnzbd+homeassistant: Enable debug_info symbols for all archs * rustc: Add RUSTFLAGS environment variable option * qoriq: Tentatively use additional RUSTFLAGS for arch * toolchain qoriq-6.2.4: Revert RUSTFLAGS and create standard links - Removing from RUSTFLAGS target-feature=-hard-float,-spe as unsupported - Create symbolic links using standard "target triple" naming in order to avoid confusion due to the usage from Synology of e500v2 specific * rust: Add support for powerpc-unknown-linux-gnuspe tier 3 target * rust: Use RUSTUP_TOOLCHAIN env variable to define used toolchain * rust: Fix default toolchain checking * duplicity: Update bcrypt wheel from version 4.0.1 to 4.1.1 * py310-py311: Update bcrypt wheel from version 4.0.1 to 4.1.1 * homeassistant: Update bcrypt 4.1.1 and cryptography 41.0.3 * rust: Enforce using newer native/cmake when building toolchain * rust: Fix typo when building native/cmake * rust: Tentative to fix online issue relatively to cmake * rust: Different approach to enforce using native/cmake * rust: Enforcing --sysroot at link time for tier-3 toolchain builds * rust: Enforce sysroot using extra RUSTFLAGS variable * rust: Downgrade to stage1 level compiler and disable toolkit * rust: Rename custom toolchain to match RUSTUP_TOOLCHAIN for clarity * rust: Revert back at using stage2 compiler as it fails online * rust: Clean-up stage0 and stage1 after building stage2 * rust: Add ADDITIONAL_RUSTFLAGS to target-tripple rustflags env var * rust.mk: Use RUSTUP_TOOLCHAIN overriding +stable|$(toolchain) * rust: First working version for powerpc-*-gnuspe for qoriq arch NOTE: requires clean-up and review of every extra variable set * rust: Removed unused build flags * rust: Enforce deleting config.toml prior to setting up compiler * rust: Either use native/llvm-9.0 or include clang-llvm to docker * rust: Attempt at fixing LLVM error on github-action * rust: Fix typo in precedent commit * rust: Remove previous LLVM attempts * rust: Add llvm-13 and clang-13 part of the base install * rust: Revert commit related to llvm-13 and clang-13 in Dockerfile * rust: Enforce build to x86_64-unknown-linux-gnu * rust: Revert enforcing build triplet * rust: Disable download-ci-llvm to enforce building of LLVM * rust: Don't enforce building x86_64 and remove llvm to use default * rust: Enforce building LLVM * rust: tentative typo fixing for llvm building * rust: Change default stage to 2 Hoping to solve github-action error message: failed: x.py should be run with `--stage 2` on CI, but was run with `--stage 1` * rust: Re-try downloading LLVM using if-unchanged option * rust: llvm "if-unchanged" seem to reuquire quotes * rust: re-introduce host target as otherwise missing crates This was fixed earlier by ensuring to build host rust as well part of that toolchain otherwise get errors such as: error[E0463]: can't find crate for `core` error[E0463]: can't find crate for `compiler_builtins` * rust: Specify RUSTUP_TOOLCHAIN so python wheel can build * native/rust-qoriq: Ability to download and use pre-built toolchain * rust: Enable usage of native/rust-qoriq * rust: Fix toolchain setting-up dues to TC_ARCH vs ARCH usages * rust: "ARCH" detection for toolchain independantly from location When called from cross or spk usage of $(ARCH) When called from toolchain: - Usage of $(TC_ARCH) when $(TC_NAME) does not exist - Usage of $(TC_NAME) for generic archs * python311: Remove duplicate code kept from rebasing * homeassistant: Disable GCC_DEBUG_INFO * python311: Disable GCC_DEBUG_INFO * sabnzbd: Disable GCC_DEBUG_INFO * qoriq-6.2.4: convert test to -L and using ln -sf (@hgy59) * rust: Enable RUST_BUILD_TOOLCHAIN=1 to test rebuild still works * python311: Fix typo relatively to failure on old ppc only * tc-rust.mk: Removing left-over exit 2 for debugging purpose * rust-qoriq: Disable toolchain testing building in favor of native
1 parent 9aaad74 commit 74955c6

File tree

12 files changed

+176
-36
lines changed

12 files changed

+176
-36
lines changed

mk/spksrc.cross-rust-env.mk

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,59 @@
11
# Configuration for rust compiler
2-
#
2+
#
33

44
# Add cargo for rust compiler to default PATH
55
ifneq ($(BASE_DISTRIB_DIR),)
6+
# Enforce newer cmake when building tier-3 toolchains
7+
CMAKE_PATH = $(abspath $(WORK_DIR)/../../../native/cmake/work-native/install/usr/local/bin)
68
export CARGO_HOME=$(BASE_DISTRIB_DIR)/cargo
79
export RUSTUP_HOME=$(BASE_DISTRIB_DIR)/rustup
8-
export PATH:=$(BASE_DISTRIB_DIR)/cargo/bin:$(PATH)
10+
export PATH:=$(abspath $(BASE_DISTRIB_DIR)/cargo/bin):$(CMAKE_PATH):$(PATH)
911
endif
1012

11-
ifeq ($(RUST_TOOLCHAIN),)
12-
RUST_TOOLCHAIN = stable
13+
ifeq ($(RUSTUP_DEFAULT_TOOLCHAIN),)
14+
RUSTUP_DEFAULT_TOOLCHAIN = stable
1315
endif
1416

15-
RUST_TARGET =
17+
# When calling directly from toolchain/syno-<arch>-<version>
18+
# ARCH variable is still unset thus using $(TC_ARCH) although
19+
# in generic archs we must rely on $(TC_NANE)
20+
RUST_ARCH = $(or $(ARCH),$(lastword $(subst -, ,$(TC_NAME))),$(TC_ARCH))
21+
22+
# When building toolchain Tier-3 arch support
23+
# While stage-2 is the truly current compiler, stage-1 suffice our needs
24+
# https://rustc-dev-guide.rust-lang.org/building/bootstrapping.html#stage-2-the-truly-current-compiler
25+
RUSTUP_DEFAULT_TOOLCHAIN_STAGE = 2
26+
1627
# map archs to rust targets
17-
ifeq ($(findstring $(ARCH), $(x64_ARCHS)),$(ARCH))
18-
RUST_TARGET = x86_64-unknown-linux-gnu
19-
endif
20-
ifeq ($(findstring $(ARCH), $(i686_ARCHS)),$(ARCH))
21-
RUST_TARGET = i686-unknown-linux-gnu
22-
endif
23-
ifeq ($(findstring $(ARCH), $(ARMv5_ARCHS)),$(ARCH))
24-
# may be not supported for cargo
28+
ifeq ($(findstring $(RUST_ARCH), $(ARMv5_ARCHS)),$(RUST_ARCH))
2529
RUST_TARGET = armv5te-unknown-linux-gnueabi
2630
endif
27-
ifeq ($(findstring $(ARCH), $(ARMv7_ARCHS)),$(ARCH))
31+
ifeq ($(findstring $(RUST_ARCH), $(ARMv7_ARCHS)),$(RUST_ARCH))
2832
RUST_TARGET = armv7-unknown-linux-gnueabihf
2933
endif
30-
ifeq ($(findstring $(ARCH), $(ARMv7L_ARCHS)),$(ARCH))
34+
ifeq ($(findstring $(RUST_ARCH), $(ARMv7L_ARCHS)),$(RUST_ARCH))
3135
RUST_TARGET = armv7-unknown-linux-gnueabi
3236
endif
33-
ifeq ($(findstring $(ARCH), $(ARMv8_ARCHS)),$(ARCH))
37+
ifeq ($(findstring $(RUST_ARCH), $(ARMv8_ARCHS)),$(RUST_ARCH))
3438
RUST_TARGET = aarch64-unknown-linux-gnu
3539
endif
36-
ifeq ($(findstring $(ARCH), $(PPC_ARCHS)),$(ARCH))
37-
RUST_TARGET = powerpc-unknown-linux-gnu
40+
ifeq ($(findstring $(RUST_ARCH), $(PPC_ARCHS)),$(RUST_ARCH))
41+
RUST_BUILD_TOOLCHAIN = 0
42+
RUST_TARGET = powerpc-unknown-linux-gnuspe
43+
TC_RUSTUP_TOOLCHAIN = stage$(RUSTUP_DEFAULT_TOOLCHAIN_STAGE)-$(RUST_TARGET)
3844
endif
45+
ifeq ($(findstring $(RUST_ARCH), $(x64_ARCHS)),$(RUST_ARCH))
46+
RUST_TARGET = x86_64-unknown-linux-gnu
47+
endif
48+
ifeq ($(findstring $(RUST_ARCH), $(i686_ARCHS)),$(RUST_ARCH))
49+
RUST_TARGET = i686-unknown-linux-gnu
50+
endif
51+
3952
ifeq ($(RUST_TARGET),)
40-
$(error Arch $(ARCH) not supported)
53+
$(error Arch $(RUST_ARCH) not supported)
54+
endif
55+
56+
# By default use the default toolchain if unset
57+
ifeq ($(TC_RUSTUP_TOOLCHAIN),)
58+
TC_RUSTUP_TOOLCHAIN = $(RUSTUP_DEFAULT_TOOLCHAIN)
4159
endif

mk/spksrc.cross-rust.mk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,14 @@ CARGO_INSTALL_ARGS += $(CARGO_BUILD_ARGS)
5959
endif
6060

6161
# Default build with rust and install with cargo
62+
# The cargo call uses tc_vars.mk RUSTUP_TOOLCHAIN variable
63+
# overriding definition using +stable or +$(RUSTUP_TOOLCHAIN)
64+
# https://rust-lang.github.io/rustup/environment-variables.html
6265
rust_install_target:
63-
@echo " ==> Cargo install rust package $(PKG_NAME) ($(shell rustc --version); $(RUST_TOOLCHAIN))"
64-
@$(RUN) cargo +$(RUST_TOOLCHAIN) install $(CARGO_INSTALL_ARGS)
65-
66+
@echo " ==> Cargo install rust package $(PKG_NAME) (rustc +$(TC_RUSTUP_TOOLCHAIN) -vV)"
67+
@$(RUN) rustc +$(TC_RUSTUP_TOOLCHAIN) -vV
68+
@$(RUN) echo cargo +$(TC_RUSTUP_TOOLCHAIN) install $(CARGO_INSTALL_ARGS) --target $(RUST_TARGET)
69+
@$(RUN) cargo +$(TC_RUSTUP_TOOLCHAIN) install $(CARGO_INSTALL_ARGS) --target $(RUST_TARGET)
6670

6771
#####
6872

mk/spksrc.tc-rust.mk

Lines changed: 80 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
# rustc_target (override with RUSTC_TARGET)
77
# post_rustc_target (override with POST_RUSTC_TARGET)
88

9+
# Define rustc configuration toml file location
10+
# when rebuilding for unsupported archs (i.e. Tier 3)
11+
ifeq ($(strip $(TC_NAME)),)
12+
TC_LOCAL_VARS_RUST = $(WORK_DIR)/$(TC_ARCH).toml
13+
else
14+
TC_LOCAL_VARS_RUST = $(WORK_DIR)/$(lastword $(subst -, ,$(TC_NAME))).toml
15+
endif
16+
917
# Configure file descriptor lock timeout
1018
ifeq ($(strip $(FLOCK_TIMEOUT)),)
1119
FLOCK_TIMEOUT = 300
@@ -32,6 +40,43 @@ endif
3240
.PHONY: rustc rustc_msg
3341
.PHONY: $(PRE_RUSTC_TARGET) $(RUSTC_TARGET) $(POST_RUSTC_TARGET)
3442

43+
.PHONY: $(TC_LOCAL_VARS_RUST)
44+
$(TC_LOCAL_VARS_RUST):
45+
env $(MAKE) --no-print-directory rust_toml > $@ 2>/dev/null;
46+
47+
.PHONY: rust_toml
48+
rust_toml:
49+
@echo 'profile = "compiler"' ; \
50+
echo
51+
@echo "[build]" ; \
52+
echo 'target = ["x86_64-unknown-linux-gnu", "$(RUST_TARGET)"]' ; \
53+
echo "build-stage = $(RUSTUP_DEFAULT_TOOLCHAIN_STAGE)" ; \
54+
echo "doc-stage = 2" ; \
55+
echo "docs = false" ; \
56+
echo "docs-minification = false" ; \
57+
echo "compiler-docs = false" ; \
58+
echo
59+
@echo "[rust]" ; \
60+
echo 'channel = "stable"' ; \
61+
echo 'lto = "off"' ; \
62+
echo
63+
@echo "[llvm]" ; \
64+
echo 'download-ci-llvm = "if-unchanged"' ; \
65+
echo
66+
@echo "[install]" ; \
67+
echo
68+
@echo "[dist]" ; \
69+
echo
70+
@echo "[target.x86_64-unknown-linux-gnu]" ; \
71+
echo
72+
@echo "[target.$(RUST_TARGET)]" ; \
73+
echo 'cc = "$(WORK_DIR)/$(TC_TARGET)/bin/$(TC_PREFIX)gcc"' ; \
74+
echo 'cxx = "$(WORK_DIR)/$(TC_TARGET)/bin/$(TC_PREFIX)g++"' ; \
75+
echo 'ar = "$(WORK_DIR)/$(TC_TARGET)/bin/$(TC_PREFIX)ar"' ; \
76+
echo 'ranlib = "$(WORK_DIR)/$(TC_TARGET)/bin/$(TC_PREFIX)ranlib"' ; \
77+
echo 'linker = "$(WORK_DIR)/$(TC_TARGET)/bin/$(TC_PREFIX)gcc"' ; \
78+
echo
79+
3580
rustc_msg:
3681
@$(MSG) "Installing rustc toolchain for $(NAME)"
3782
@$(MSG) "- rustup installation PATH: $(RUSTUP_HOME)"
@@ -47,18 +92,46 @@ pre_rustc_target: rustc_msg
4792
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path ; \
4893
flock -u 5
4994

50-
rustc_target: $(PRE_RUSTC_TARGET)
51-
@$(MSG) "rustup toolchain install $(RUST_TOOLCHAIN)" ; \
95+
rustc_target: $(PRE_RUSTC_TARGET) $(TC_LOCAL_VARS_RUST)
96+
@$(MSG) "rustup toolchain install $(RUSTUP_DEFAULT_TOOLCHAIN)" ; \
5297
exec 5> /tmp/tc-rustc.lock ; \
5398
flock --timeout $(FLOCK_TIMEOUT) --exclusive 5 || exit 1 ; \
5499
pid=$$$$ ; \
55100
echo "$${pid}" 1>&5 ; \
56-
rustup toolchain install $(RUST_TOOLCHAIN) ; \
57-
$(MSG) "rustup default $(RUST_TOOLCHAIN)" ; \
58-
rustup default $(RUST_TOOLCHAIN) ; \
59-
$(MSG) "rustup target add $(RUST_TARGET)" ; \
60-
rustup target add $(RUST_TARGET) ; \
101+
rustup toolchain install $(RUSTUP_DEFAULT_TOOLCHAIN) ; \
102+
$(MSG) "rustup default $(RUSTUP_DEFAULT_TOOLCHAIN)" ; \
103+
rustup default $(RUSTUP_DEFAULT_TOOLCHAIN) ; \
61104
flock -u 5
105+
ifeq ($(TC_RUSTUP_TOOLCHAIN),$(RUSTUP_DEFAULT_TOOLCHAIN))
106+
@$(MSG) "rustup target add $(RUST_TARGET)"
107+
rustup override set stable
108+
rustup target add $(RUST_TARGET)
109+
rustup show
110+
else
111+
@$(MSG) "Target $(RUST_TARGET) unavailable..."
112+
ifeq ($(RUST_BUILD_TOOLCHAIN),1)
113+
@$(MSG) "Build rust target $(RUST_TARGET) from sources"
114+
@$(MSG) "Enforce usage of CMake 3.20.0 or higher"
115+
@$(MAKE) -C ../../native/cmake
116+
@$(MSG) "Building Tier-3 rust target: $(RUST_TARGET)"
117+
@(cd $(WORK_DIR) && [ ! -d rust ] && git clone --depth 1 https://github.com/rust-lang/rust.git || true)
118+
@(cd $(WORK_DIR)/rust && rm -f config.toml && ./x setup compiler)
119+
(cd $(WORK_DIR)/rust && \
120+
CFLAGS_$(subst -,_,$(RUST_TARGET))="$(TC_EXTRA_CFLAGS)" \
121+
CARGO_TARGET_$(shell echo $(RUST_TARGET) | tr - _ | tr a-z A-Z)_RUSTFLAGS="$(TC_RUSTFLAGS)" \
122+
RUST_BACKTRACE=full \
123+
./x build --config $(TC_LOCAL_VARS_RUST))
124+
rustup toolchain link $(TC_RUSTUP_TOOLCHAIN) $(WORK_DIR)/rust/build/host/stage$(RUSTUP_DEFAULT_TOOLCHAIN_STAGE)
125+
@for i in 0 1 2 ; do \
126+
[ $${i} -lt $(RUSTUP_DEFAULT_TOOLCHAIN_STAGE) ] && (cd $(WORK_DIR)/rust && ./x clean --stage $${i}) || true ; \
127+
done
128+
@$(MSG) "Building Tier 3 rust target: $(RUST_TARGET) - stage$(RUSTUP_DEFAULT_TOOLCHAIN_STAGE) complete"
129+
rustup show
130+
else
131+
@$(MSG) "Install rust target $(RUST_TARGET) from native"
132+
@$(MAKE) -C ../../native/rust-qoriq
133+
endif
134+
endif
62135

63136
post_rustc_target: $(RUSTC_TARGET)
64137

mk/spksrc.tc.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,11 @@ tc_vars: flag
154154
echo TC_ENV += LDFLAGS=\"$(LDFLAGS) $$\(ADDITIONAL_LDFLAGS\)\" ; \
155155
echo TC_ENV += CARGO_HOME=\"$(realpath $(CARGO_HOME))\" ; \
156156
echo TC_ENV += RUSTUP_HOME=\"$(realpath $(RUSTUP_HOME))\" ; \
157+
echo TC_ENV += RUSTUP_TOOLCHAIN=\"$(TC_RUSTUP_TOOLCHAIN)\" ; \
157158
echo TC_ENV += CARGO_BUILD_TARGET=\"$(RUST_TARGET)\" ; \
158159
echo TC_ENV += CARGO_TARGET_$(shell echo $(RUST_TARGET) | tr - _ | tr a-z A-Z)_AR=\"$(WORK_DIR)/$(TC_TARGET)/bin/$(TC_PREFIX)ar\" ; \
159160
echo TC_ENV += CARGO_TARGET_$(shell echo $(RUST_TARGET) | tr - _ | tr a-z A-Z)_LINKER=\"$(WORK_DIR)/$(TC_TARGET)/bin/$(TC_PREFIX)gcc\" ; \
161+
echo TC_ENV += CARGO_TARGET_$(shell echo $(RUST_TARGET) | tr - _ | tr a-z A-Z)_RUSTFLAGS=\"$(TC_RUSTFLAGS) $$\(ADDITIONAL_RUSTFLAGS\)\" ; \
160162
echo TC_CONFIGURE_ARGS := --host=$(TC_TARGET) --build=i686-pc-linux ; \
161163
echo TC_TYPE := $(TC_TYPE) ; \
162164
echo TC_SYSROOT := $(WORK_DIR)/$(TC_TARGET)/$(TC_SYSROOT) ; \

native/rust-qoriq/Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
PKG_NAME = rust-qoriq
2+
PKG_VERS = 1.77.0-nightly
3+
PKG_EXT = txz
4+
PKG_DIST_NAME = stage2_powerpc-unknown-linux-gnuspe.txz
5+
PKG_DIST_SITE = https://github.com/SynoCommunity/spksrc/releases/download/toolchains%2Frust%2F1.77.0-nightly
6+
EXTRACT_PATH = $(INSTALL_DIR)/$(INSTALL_PREFIX)
7+
8+
DEPENDS =
9+
10+
HOMEPAGE = https://www.rust-lang.org/
11+
COMMENT = A language empowering everyone to build reliable and efficient software.
12+
LICENSE = Apache-2.0, MIT licenses
13+
14+
# extracted directly into install folder
15+
INSTALL_TARGET = nop
16+
POST_INSTALL_TARGET = rust-qoriq-postinstall
17+
18+
CARGO_PATH=$(abspath $(BASE_DISTRIB_DIR)/cargo/bin)
19+
RUSTUP_HOME=$(abspath $(BASE_DISTRIB_DIR)/rustup)
20+
21+
include ../../mk/spksrc.native-install.mk
22+
23+
.PHONY: rust-qoriq-postinstall
24+
rust-qoriq-postinstall:
25+
export PATH="$(CARGO_PATH):$${PATH}" ; \
26+
export RUSTUP_HOME="$(RUSTUP_HOME)" ; \
27+
which rustup ; \
28+
rustup toolchain link stage2-powerpc-unknown-linux-gnuspe $(abspath $(INSTALL_DIR)/$(INSTALL_PREFIX)) ; \
29+
rustup show

native/rust-qoriq/digests

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
stage2_powerpc-unknown-linux-gnuspe.txz SHA1 377911465d0364e13136fa50d19bfd0a3660a373
2+
stage2_powerpc-unknown-linux-gnuspe.txz SHA256 e02030225a6e6e1f680f4bdc4e902506f8742a73ba02673a80640d9aaf336fea
3+
stage2_powerpc-unknown-linux-gnuspe.txz MD5 1129e9a88ccfaa94217a18e26d8adc00

spk/duplicity/src/requirements-crossenv.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ duplicity==1.2.3
77
# Using launchpad source as alternate
88
#https://launchpad.net/duplicity/0.8-series/0.8.23/+download/duplicity-0.8.23.tar.gz#egg=duplicity==0.8.23
99

10-
bcrypt==4.0.1
10+
bcrypt==4.1.1
1111
cffi==1.15.1
1212
coverage==7.2.7
1313
#cryptography ==> cross/cryptography

spk/homeassistant/src/requirements-crossenv.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
aiohttp==3.8.5
2-
bcrypt==4.0.1
2+
bcrypt==4.1.1
33
bitstruct==8.17.0
44
bluetooth_data_tools==1.3.0
55
Brotli==1.0.9
@@ -9,7 +9,7 @@ chacha20poly1305_reuseable==0.4.1
99
ciso8601==2.3.0
1010
coverage==7.2.7
1111
crcmod==1.7
12-
cryptography==41.0.1
12+
cryptography==41.0.3
1313
dbus_fast==1.86.0
1414
ephem==4.1.2
1515
faust_cchardet==2.1.18

spk/python310/src/requirements-crossenv.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Require environment variables
99
# PYO3_CROSS_LIB_DIR=$(STAGING_INSTALL_PREFIX)/lib/
1010
# PYO3_CROSS_INCLUDE_DIR=$(STAGING_INSTALL_PREFIX)/include/
11-
bcrypt==4.0.1
11+
bcrypt==4.1.1
1212

1313
# [cryptography]
1414
# Mandatory of using OPENSSL_*_DIR starting with version >= 40

spk/python311/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ include ../../mk/spksrc.common.mk
104104
# Force compiler LTO optimizations except:
105105
# - when testing all wheels
106106
# - when including debug_info symbols
107-
# - when using PPC arch (fails on qoriq)
107+
# - when using OLD_PPC_ARCHS arch
108108
ifneq ($(strip $(WHEELS_TEST_ALL)),1)
109109
ifneq ($(strip $(GCC_DEBUG_INFO)),1)
110-
ifneq ($(findstring $(ARCH),$(PPC_ARCHS)),$(ARCH))
110+
ifneq ($(findstring $(ARCH),$(OLD_PPC_ARCHS)),$(ARCH))
111111
ENV += PYTHON_OPTIMIZE=1
112112
endif
113113
endif

0 commit comments

Comments
 (0)