-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Only use PGO data if clang can read it #114005
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
Conversation
Contributes to #34649 and fixes the Codespaces prebuild.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (1)
- src/coreclr/pgosupport.cmake: Language not supported
message(WARNING "PGO is not supported; Clang 16 or later is required for profile guided optimizations") | ||
endif((CMAKE_CXX_COMPILER_ID MATCHES "Clang") AND (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16)) | ||
else(HAVE_LTO_AND_PGO_DATA_SUPPORTED) | ||
message(WARNING "LTO is not supported or PGO optimization data not compatible, skipping profile guided optimizations for ${TargetName}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we pass msbuild's OfficialBuildId != ''
to cmake as CLR_IS_OFFICIAL_BUILD
e.g., then we can use it to error out to make the problem visible (probably we don't want it to slip through unnoticed).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea, but that is also set for source-build and afaik they can't use our PGO packages so we shouldn't error in that case. I'd do that in a separate PR.
/ba-g azurelinux timeouts are unrelated |
Fixes the Codespaces prebuild.
Fixes #34649