python-build-standalone
python-build-standalone copied to clipboard
./build-macos.py builds noopt python
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
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