Skip to content

Use PGO during musl builds #570

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions ci-targets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ linux:
build_options:
- debug
- noopt
- lto
- pgo+lto
build_options_conditional:
- options:
- freethreaded+debug
Expand All @@ -72,7 +72,7 @@ linux:
build_options:
- debug
- noopt
- lto
- pgo+lto
build_options_conditional:
- options:
- freethreaded+debug
Expand All @@ -93,7 +93,7 @@ linux:
build_options:
- debug
- noopt
- lto
- pgo+lto
build_options_conditional:
- options:
- freethreaded+debug
Expand All @@ -114,7 +114,7 @@ linux:
build_options:
- debug
- noopt
- lto
- pgo+lto
build_options_conditional:
- options:
- freethreaded+debug
Expand All @@ -135,7 +135,7 @@ linux:
build_options:
- debug
- noopt
- lto
- pgo+lto
build_options_conditional:
- options:
- freethreaded+debug
Expand All @@ -156,7 +156,7 @@ linux:
build_options:
- debug
- noopt
- lto
- pgo+lto
build_options_conditional:
- options:
- freethreaded+debug
Expand Down Expand Up @@ -262,7 +262,7 @@ linux:
- lto+static
- debug
- noopt
- lto
- pgo+lto
run: true

x86_64_v2-unknown-linux-musl:
Expand All @@ -281,7 +281,7 @@ linux:
- lto+static
- debug
- noopt
- lto
- pgo+lto
run: true

x86_64_v3-unknown-linux-musl:
Expand All @@ -300,7 +300,7 @@ linux:
- lto+static
- debug
- noopt
- lto
- pgo+lto
run: true

x86_64_v4-unknown-linux-musl:
Expand All @@ -319,7 +319,7 @@ linux:
- lto+static
- debug
- noopt
- lto
- pgo+lto
run: true

windows:
Expand Down
4 changes: 2 additions & 2 deletions cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ if [ -n "${CPYTHON_OPTIMIZED}" ]; then
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-bolt"
fi

# Allow users to enable the experimental JIT on 3.13+
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" ]]; then
# Allow users to enable the experimental JIT on 3.13+ (but not on musl)
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" && ! "${CC}" = "musl-clang" ]]; then

# The JIT build is failing on macOS due to compiler errors
# Only enable on Linux / 3.13 until that's fixed upstream
Expand Down
Loading