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

Enable PGO and native builds for aarch64-unknown-linux-gnu

Open zanieb opened this issue 11 months ago • 2 comments

zanieb avatar Jan 07 '25 23:01 zanieb

We currently don't use a modern LLVM toolchain for Linux aarch64. As a result we won't get the same optimizations from PGO or LTO.

It may just work though since the CPython configure should resolve the appropriate compiler flags from the detected toolchain.

We can look into adopting modern LLVM on Linux ARM separately.

indygreg avatar Jan 08 '25 15:01 indygreg

@indygreg Are you sure? Perhaps I'm misunderstanding but it looks like we cross-compile with LLVM 19

https://github.com/astral-sh/python-build-standalone/blob/0be0a575b4a397599329aa11c919264361550d3b/pythonbuild/utils.py#L423-L436

https://github.com/astral-sh/python-build-standalone/actions/runs/12677576491/job/35333290679

zanieb avatar Jan 08 '25 20:01 zanieb

Okay after some poking around this is blocked by the Dockerfile which cannot be built on aarch64 yet.

zanieb avatar Mar 20 '25 17:03 zanieb

See #670

zanieb avatar Jul 01 '25 16:07 zanieb