File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ endif(NOT WIN32)
18
18
function (add_pgo TargetName)
19
19
if (CLR_CMAKE_PGO_INSTRUMENT)
20
20
if (CLR_CMAKE_HOST_WIN32)
21
- target_link_options (${TargetName} $<$<AND :$<NOT :$<LINK_LANGUAGE:RC>>,$<CONFIG:RELEASE,RELWITHDEBINFO>>:/LTCG>)
22
- target_link_options (${TargetName} $<$<CONFIG:RELEASE,RELWITHDEBINFO>:/GENPROFILE>)
21
+ target_link_options (${TargetName} PRIVATE $<$<AND :$<NOT :$<LINK_LANGUAGE:RC>>,$<CONFIG:RELEASE,RELWITHDEBINFO>>:/LTCG>)
22
+ target_link_options (${TargetName} PRIVATE $<$<CONFIG:RELEASE,RELWITHDEBINFO>:/GENPROFILE>)
23
23
else (CLR_CMAKE_HOST_WIN32)
24
24
if (UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELEASE OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELWITHDEBINFO)
25
25
target_compile_options (${TargetName} PRIVATE -flto -fprofile-instr-generate)
You can’t perform that action at this time.
0 commit comments