#5433·or-tools

cmake(C++): Windows build is broken

Author: MizuxCreated Sep 25, 2026Updated Sep 25, 2026
LabelsBugOS: WindowsBuild: CMakeCI Failure

Since the commit https://github.com/google/or-tools/commit/fa12f59fe375ae4074a3600e08f0646801687c82 (removing /Zc:inline) it seems windows cmake compile fails...

Typical error:

026-09-25T12:28:17.5823641Z        "D:\a\or-tools\or-tools\build\ALL_BUILD.vcxproj" (default target) (1) ->
2026-09-25T12:28:17.5823900Z        "D:\a\or-tools\or-tools\build\ortools\gurobi\ortools_gurobi.vcxproj" (default target) (24) ->
2026-09-25T12:28:17.5824094Z        "D:\a\or-tools\or-tools\build\ortools_core.vcxproj" (default target) (85) ->
2026-09-25T12:28:17.5824177Z        (Link target) -> 
2026-09-25T12:28:17.5824514Z          LINK : fatal error LNK1189: library limit of 65535 objects exceeded [D:\a\or-tools\or-tools\build\ortools_core.vcxproj]
2026-09-25T12:28:17.5824519Z 
2026-09-25T12:28:17.5824600Z     23040 Warning(s)
2026-09-25T12:28:17.5824724Z     1 Error(s)
2026-09-25T12:28:17.5824729Z 
2026-09-25T12:28:17.5824817Z Time Elapsed 01:02:18.58

refs: https://github.com/google/or-tools/actions/runs/36129053360/job/108051881220