Skip to content

Commit 1d69a9d

Browse files
committed
fix: debug ci/cd fix attempt 1
1 parent fd78534 commit 1d69a9d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/build_run_win_32_debug.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ echo on
22
cd "%~dp0..\.."
33
mkdir build
44
cd build
5-
cmake -DCMAKE_CXX_FLAGS="-D__VMAWARE_DEBUG__" -G "Visual Studio 17 2022" -A Win32 -S ..
5+
cmake -DDEBUG_OUTPUT=ON -G "Visual Studio 17 2022" -A Win32 -S ..
66
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com" "VMAware.sln" /Build "Release|Win32" /Project "vmaware" /ProjectConfig "Release|Win32"
77
cd Release
88
vmaware.exe

.github/workflows/build_run_win_64_debug.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ echo on
44
cd "%~dp0..\.."
55
mkdir build
66
cd build
7-
cmake -DCMAKE_CXX_FLAGS="-D__VMAWARE_DEBUG__" .. -G "Visual Studio 17 2022" -A x64 -S ..
7+
cmake -DDEBUG_OUTPUT=ON .. -G "Visual Studio 17 2022" -A x64 -S ..
88
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com" "VMAware.sln" /Build "Release|x64" /Project "vmaware" /ProjectConfig "Release|x64"
99
cd Release
1010
vmaware.exe

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ else()
109109
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
110110
endif()
111111

112+
# extra flags
113+
option(DEBUG_OUTPUT "Force __VMAWARE_DEBUG__ define" OFF)
114+
if(DEBUG_OUTPUT)
115+
target_compile_definitions(${TARGET} PRIVATE __VMAWARE_DEBUG__)
116+
endif()
117+
112118
# add executable
113119
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${BUILD_DIR}")
114120
add_executable(${TARGET} "src/cli.cpp")

0 commit comments

Comments
 (0)