From 241262c1a3d359399d178e6bf85a617ab67f0ba5 Mon Sep 17 00:00:00 2001 From: native-api Date: Mon, 20 Feb 2023 22:17:51 +0300 Subject: [PATCH] Updated Build for maximum performance in MacOS (markdown) --- Build-for-maximum-performance-in-MacOS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Build-for-maximum-performance-in-MacOS.md b/Build-for-maximum-performance-in-MacOS.md index fdd8ac9..1258189 100644 --- a/Build-for-maximum-performance-in-MacOS.md +++ b/Build-for-maximum-performance-in-MacOS.md @@ -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! ```