Skip to content

Commit 9c29683

Browse files
committed
build: Remove tune-cpu for lts-cpu (#17912)
1 parent 865c768 commit 9c29683

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release-python.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ jobs:
141141
# IMPORTANT: All features enabled here should also be included in py-polars/polars/_cpu_check.py
142142
run: |
143143
if [[ "$IS_LTS_CPU" = true ]]; then
144-
TUNE_CPU=x86-64-v2
145144
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+cmpxchg16b
146145
CC_FEATURES="-msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mcx16"
147146
else
@@ -161,8 +160,13 @@ jobs:
161160
CC_FEATURES: ${{ steps.features.outputs.cc_features }}
162161
CFG: ${{ matrix.package == 'polars-lts-cpu' && '--cfg allocator="default"' || '' }}
163162
run: |
164-
echo "RUSTFLAGS=-C target-feature=$FEATURES -Z tune-cpu=$TUNE_CPU $CFG" >> $GITHUB_ENV
165-
echo "CFLAGS=$CC_FEATURES -mtune=$TUNE_CPU" >> $GITHUB_ENV
163+
if [[ -z "$TUNE_CPU" ]]; then
164+
echo "RUSTFLAGS=-C target-feature=$FEATURES $CFG" >> $GITHUB_ENV
165+
echo "CFLAGS=$CC_FEATURES" >> $GITHUB_ENV
166+
else
167+
echo "RUSTFLAGS=-C target-feature=$FEATURES -Z tune-cpu=$TUNE_CPU $CFG" >> $GITHUB_ENV
168+
echo "CFLAGS=$CC_FEATURES -mtune=$TUNE_CPU" >> $GITHUB_ENV
169+
fi
166170
167171
- name: Set variables in CPU check module
168172
run: |

0 commit comments

Comments
 (0)