Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./build-macos.py builds noopt python #499

Open
stepancheg opened this issue Jan 15, 2025 · 1 comment
Open

./build-macos.py builds noopt python #499

stepancheg opened this issue Jan 15, 2025 · 1 comment
Labels
question Asking for clarification or support

Comments

@stepancheg
Copy link

./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
@zanieb
Copy link
Member

zanieb commented Jan 15, 2025

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

if [ -n "${CPYTHON_OPTIMIZED}" ]; then
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-optimizations"
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_12}" && -n "${BOLT_CAPABLE}" ]]; then
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-bolt"
fi
fi

@zanieb zanieb added the question Asking for clarification or support label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

2 participants