[clang] [profile] runtime counter relocation is needed on windows-msvc targets (PR #127858)
Anh Tuyen Tran via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 20 08:09:05 PST 2025
================
@@ -795,7 +795,8 @@ static void addPGOAndCoverageFlags(const ToolChain &TC, Compilation &C,
else {
CmdArgs.push_back("-fprofile-continuous");
// Platforms that require a bias variable:
- if (T.isOSBinFormatELF() || T.isOSAIX()) {
+ if (T.isOSBinFormatELF() || T.isOSAIX() ||
+ T.isKnownWindowsMSVCEnvironment()) {
----------------
anhtuyenibm wrote:
Although I assume **Triple::Win32** aligns more closely to _WIN32, your point is reasonable.
https://github.com/llvm/llvm-project/pull/127858
More information about the cfe-commits
mailing list