Skip to content

Need a way to build a RELEASE build without PGD data #8304

Closed
@BruceForstall

Description

@BruceForstall

If I want to build a RELEASE build on Windows without PGD data (that is, specifically preventing PGD data from being used), is there a way to do so? Ideally, I could pass something like "nopgo" to build.cmd.

It looks like right now I need to hack pgosupport.cmake to command out or remove these two lines:

set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS_RELEASE        " /LTCG /USEPROFILE:PGD=${ProfilePath}")
set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS_RELWITHDEBINFO " /LTCG /USEPROFILE:PGD=${ProfilePath}")        

?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions