python-build-standalone icon indicating copy to clipboard operation
python-build-standalone copied to clipboard

./build-macos.py builds noopt python

Open stepancheg opened this issue 10 months ago • 1 comments
trafficstars

./build-macos.py --python cpython-3.10

creates a file

dist/cpython-3.10.16-aarch64-apple-darwin-noopt-20250114T1622.tar.zst

Noopt suggests it is build without optimizations? But logs mention clang ... -O2.

So this issue is about either:

  • make build optimized by default
  • or change the file name to indicate it is optimized

stepancheg avatar Jan 15 '25 16:01 stepancheg

The build variants refer to CPython build options. Here, we are referring to CPython's optimizations, e.g.,

https://github.com/astral-sh/python-build-standalone/blob/6f3ab9844d0791cfbbf6caf28bdf60b2812b4c10/cpython-unix/build-cpython.sh#L444-L450

zanieb avatar Jan 15 '25 16:01 zanieb