Skip to content

Commit

Permalink
Revert "python: Use more generic march for rosetta compatibiity (wolf…
Browse files Browse the repository at this point in the history
…i-dev#44644)" (wolfi-dev#44950)

pyperformance on a gcloud VM noticed some seemingly significant
regressions due to this. Let's roll it back until we can properly assess
how to proceed.

This reverts commit 0d66ee5.

Signed-off-by: dann frazier <[email protected]>
  • Loading branch information
dannf authored Mar 6, 2025
1 parent a818179 commit 982a886
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 65 deletions.
18 changes: 1 addition & 17 deletions python-3.10.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: python-3.10
version: 3.10.16
epoch: 2
epoch: 3
description: "the Python programming language"
copyright:
- license: PSF-2.0
Expand Down Expand Up @@ -61,22 +61,6 @@ pipeline:

- name: Configure
runs: |
# Use more generic -march for rosetta2 compatibility
# Add additional flag overrides here
case "${{build.arch}}" in
"aarch64")
common_flags=""
;;
"x86_64")
common_flags="-march=x86-64"
;;
esac
export CFLAGS="${CFLAGS/-Os/-O2} $common_flags"
export CXXFLAGS="${CXXFLAGS/-Os/-O2} $common_flags"
export CPPFLAGS="${CPPFLAGS/-Os/-O2} $common_flags"
./configure \
--host=${{host.triplet.gnu}} \
--build=${{host.triplet.gnu}} \
Expand Down
17 changes: 1 addition & 16 deletions python-3.11.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: python-3.11
version: 3.11.11
epoch: 2
epoch: 3
description: "the Python programming language"
copyright:
- license: PSF-2.0
Expand Down Expand Up @@ -61,21 +61,6 @@ pipeline:

- name: Configure
runs: |
# Use more generic -march for rosetta2 compatibility
# Add additional flag overrides here
case "${{build.arch}}" in
"aarch64")
common_flags=""
;;
"x86_64")
common_flags="-march=x86-64"
;;
esac
export CFLAGS="${CFLAGS/-Os/-O2} $common_flags"
export CXXFLAGS="${CXXFLAGS/-Os/-O2} $common_flags"
export CPPFLAGS="${CPPFLAGS/-Os/-O2} $common_flags"
./configure \
--host=${{host.triplet.gnu}} \
--build=${{host.triplet.gnu}} \
Expand Down
17 changes: 1 addition & 16 deletions python-3.12.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: python-3.12
version: "3.12.9"
epoch: 3
epoch: 4
description: "the Python programming language"
copyright:
- license: PSF-2.0
Expand Down Expand Up @@ -68,21 +68,6 @@ pipeline:

- name: Configure
runs: |
# Use more generic -march for rosetta2 compatibility
# Add additional flag overrides here
case "${{build.arch}}" in
"aarch64")
common_flags=""
;;
"x86_64")
common_flags="-march=x86-64"
;;
esac
export CFLAGS="${CFLAGS/-Os/-O2} $common_flags"
export CXXFLAGS="${CXXFLAGS/-Os/-O2} $common_flags"
export CPPFLAGS="${CPPFLAGS/-Os/-O2} $common_flags"
./configure \
--host=${{host.triplet.gnu}} \
--build=${{host.triplet.gnu}} \
Expand Down
17 changes: 1 addition & 16 deletions python-3.13.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: python-3.13
version: "3.13.2"
epoch: 3
epoch: 4
description: "the Python programming language"
copyright:
- license: PSF-2.0
Expand Down Expand Up @@ -68,21 +68,6 @@ pipeline:

- name: Configure
runs: |
# Use more generic -march for rosetta2 compatibility
# Add additional flag overrides here
case "${{build.arch}}" in
"aarch64")
common_flags=""
;;
"x86_64")
common_flags="-march=x86-64"
;;
esac
export CFLAGS="${CFLAGS/-Os/-O2} $common_flags"
export CXXFLAGS="${CXXFLAGS/-Os/-O2} $common_flags"
export CPPFLAGS="${CPPFLAGS/-Os/-O2} $common_flags"
./configure \
--host=${{host.triplet.gnu}} \
--build=${{host.triplet.gnu}} \
Expand Down

0 comments on commit 982a886

Please sign in to comment.