Skip to content

Commit 85be529

Browse files
Switch vc6 generator to ninja
1 parent 8f1aabf commit 85be529

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

CMakePresets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
"name": "vc6",
1111
"displayName": "Windows 32bit VC6 Release",
12-
"generator": "NMake Makefiles",
12+
"generator": "Ninja",
1313
"hidden": false,
1414
"binaryDir": "${sourceDir}/build/${presetName}",
1515
"environment": {
@@ -21,7 +21,7 @@
2121
"cacheVariables": {
2222
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
2323
"CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL",
24-
"CMAKE_MSVC_DEBUG_INFORMATION_FORMAT": "$<$<CONFIG:Release,Debug,RelWithDebInfo>:ProgramDatabase>",
24+
"CMAKE_MSVC_DEBUG_INFORMATION_FORMAT": "",
2525
"CMAKE_BUILD_TYPE": "Release",
2626
"RTS_FLAGS": "/W3"
2727
},

cmake/compilers.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ if (NOT IS_VS6_BUILD)
3636
# Enforce strict __cplusplus version
3737
add_compile_options(/Zc:__cplusplus)
3838
endif()
39+
else()
40+
# Define two pools: 'compile' with plenty of slots, 'link' with just one
41+
set_property(GLOBAL PROPERTY JOB_POOLS compile=0 link=1)
42+
# Tell CMake that all compile steps go into 'compile'
43+
set(CMAKE_JOB_POOL_COMPILE compile)
44+
# and all link steps go into 'link' (so only one link ever runs since vc6 can't handle multithreaded linking)
45+
set(CMAKE_JOB_POOL_LINK link)
3946
endif()
4047

4148
if(RTS_BUILD_OPTION_ASAN)

0 commit comments

Comments
 (0)