Skip to content

Commit a643440

Browse files
committed
hyperv and platform ci test
1 parent 35542a4 commit a643440

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ jobs:
7272
working-directory: ${{ steps.strings.outputs.build-output-dir }}
7373
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
7474
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
75-
run: ctest --build-config --rerun-failed --output-on-failure ${{ matrix.build_type }}
75+
run: ctest --build-config --rerun-failed --verbose --output-on-failure ${{ matrix.build_type }}

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
2020
if (MSVC)
2121
set(CMAKE_CXX_FLAGS "/Wall /W4 /EHsc")
2222
else()
23-
set(CMAKE_CXX_FLAGS "-Wextra -Wall -Wextra -Wconversion -Wdouble-promotion -Wno-unused-parameter -Wno-unused-function -Wno-sign-conversion -fmax-errors=20")
23+
set(CMAKE_CXX_FLAGS "-Wextra -Wall -Wextra -Wconversion -Wdouble-promotion -Wno-unused-parameter -Wno-unused-function -Wno-sign-conversion")
2424
endif()
2525

2626
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "GNU")
@@ -64,7 +64,7 @@ if (MSVC)
6464
elseif(LINUX)
6565
if(CMAKE_BUILD_TYPE MATCHES "Debug")
6666
MESSAGE(STATUS "Build set to debug mode")
67-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -DDEBUG -O0 -fsanitize=address")
67+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fmax-errors=20 -DDEBUG -O0 -fsanitize=address")
6868
elseif(CMAKE_BUILD_TYPE MATCHES "Release")
6969
MESSAGE(STATUS "Build set to release mode")
7070
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g0 -O3")

src/vmaware.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7076,7 +7076,7 @@ struct VM {
70767076
(version == 0) ||
70777077
(version < 10)
70787078
) {
7079-
debug("HYPERV_CHECK: returned false through insufficient windows version");
7079+
debug("HYPERV_CHECK: returned false through insufficient windows version (version ", static_cast<u32>(version), ")");
70807080
return false;
70817081
}
70827082

0 commit comments

Comments
 (0)