1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 23:33:45 -05:00

Updated Build for maximum performance in MacOS (markdown)

native-api
2023-02-20 22:17:51 +03:00
parent 9a46b6a107
commit 241262c1a3

@@ -1,6 +1,7 @@
The command to build with PGO in [Building for maximum performance -- Python-Build README](https://github.com/pyenv/pyenv/blob/master/plugins/python-build/README.md#building-for-maximum-performance) doesn't directly translate to MacOS because as of this writing, Apple's latest CLang (14.0.0) doesn't support `-march=native`.
To use it, you can compile CPython with CLang 15 from Homebrew's LLVM (`brew install llvm`).
Note however that this is not an officially supported setup. Homebrew's LLVM is known to break the build for some combinations of CPython, MacOS and XCode versions and there might be other unexpected breakages or slight incompatibilities. This was also not tested when compiling for x86_64 with Apple Silicon. Use at your own risk!
```