Skip to content

Commit f376f19

Browse files
committed
fix ci
1 parent e133896 commit f376f19

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

benchmarks/ReadFileUtil.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void Uthread_read_file_for(int num, const std::string &s, auto e) {
6363
std::vector<std::function<void()>> task_list;
6464
task_list.reserve(num);
6565
for (int i = 0; i < num; ++i) {
66-
task_list.template emplace_back(
66+
task_list.emplace_back(
6767
[&s, e]() { Uthread_read_file(s.c_str(), e); });
6868
}
6969
collectAll<Launch::Schedule>(task_list.begin(), task_list.end(), e);

cmake/FindGTest.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ else()
1313
GIT_TAG release-1.11.0
1414
GIT_SHALLOW ON
1515
)
16-
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
16+
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND
17+
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "20")
1718
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=character-conversion")
1819
endif()
1920
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

0 commit comments

Comments
 (0)