File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,17 +52,17 @@ function(add_pgo TargetName)
52
52
add_compile_definitions (WITH_NATIVE_PGO)
53
53
else (CLR_CMAKE_HOST_WIN32)
54
54
if (UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELEASE OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELWITHDEBINFO)
55
- if ((CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) AND (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16 ))
55
+ if ((CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) AND (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 20 ))
56
56
if (HAVE_LTO)
57
57
target_compile_options (${TargetName} PRIVATE -flto -fprofile-instr-use=${ProfilePath} -Wno-profile-instr-out-of-date -Wno-profile-instr-unprofiled)
58
58
set_property (TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS " -flto -fprofile-instr-use=${ProfilePath} " )
59
59
add_compile_definitions (WITH_NATIVE_PGO)
60
60
else (HAVE_LTO)
61
61
message (WARNING "LTO is not supported, skipping profile guided optimizations" )
62
62
endif (HAVE_LTO)
63
- else ((CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) AND (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16 ))
64
- message (WARNING "PGO is not supported; Clang 16 or later is required for profile guided optimizations" )
65
- endif ((CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) AND (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16 ))
63
+ else ((CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) AND (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 20 ))
64
+ message (WARNING "PGO is not supported; Clang 20 or later is required for profile guided optimizations" )
65
+ endif ((CMAKE_CXX_COMPILER_ID MATCHES "Clang" ) AND (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 20 ))
66
66
endif (UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELEASE OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELWITHDEBINFO)
67
67
endif (CLR_CMAKE_HOST_WIN32)
68
68
endif (NOT EXISTS ${ProfilePath} )
You can’t perform that action at this time.
0 commit comments