◐ Shell
clean mode source ↗

gh-130090: Support PGO for clang-cl by chris-eibl · Pull Request #129907 · python/cpython

added 3 commits

February 9, 2025 16:30
for _freeze_module in case of clang-cl to speed up the build
Speeds up both MSVC and clang-cl builds.

Should most probably done in a separate PR and issue, though.

Fidget-Spinner

chris-eibl

I've previously gotten compile errors from clang, because the needed
intrinsics were not available without that option.

Cannot reproduce anymore. Most probably, because I've upgraded to
Visual Studio 17.13.0 Preview 5.0, which now ships with clang 19.1.1
instead of 18.1.8 and they've done that for compatibility with MSVC?

Anyway, let's keep the PR small :)
This reverts commit 26fb51f.

Shall be done in a separate PR.
This better matches the behaviour of build.bat in case of MSVC PGO builds.

@chris-eibl

zooba

Fidget-Spinner

Co-authored-by: Ken Jin <kenjin4096@gmail.com>

zooba

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
to be independent from the selected architecture
or the PlatformToolset

zooba

Co-authored-by: Steve Dower <steve.dower@microsoft.com>

This was referenced

Mar 15, 2025