Skip to content

Commit 44f4974

Browse files
authored
[cbuildgen] Disable incremental link in debug config (#2219)
With the new GH Runner Image for windows-2022 [20250921.44.1](https://github.com/actions/runner-images/releases/tag/win22%2F20250921.44) the build of cbuildgen integration tests started to fail with an [internal linker error](https://github.com/Open-CMSIS-Pack/devtools/actions/runs/17992831402/job/51210581443): ``` LINK : fatal error LNK1000: unknown error at 00007FF745A8B899; consult documentation for technical support options ``` Proposed workaround: disable incremental linking because it tends to get flaky on large graphs.
1 parent ed5db98 commit 44f4974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/buildmgr/cbuildgen/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ add_custom_command(TARGET cbuildgen POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy
3838

3939
#
4040
if(MSVC)
41-
target_link_options(cbuildgen PUBLIC "$<$<CONFIG:Debug>:/SAFESEH:NO>")
41+
target_link_options(cbuildgen PUBLIC "$<$<CONFIG:Debug>:/SAFESEH:NO;/INCREMENTAL:NO>")
4242
endif(MSVC)
4343
set_property(TARGET cbuildgen PROPERTY
4444
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

0 commit comments

Comments
 (0)