Skip to content

Gecode 7: CMake-only C++23 build baseline - #284

Draft
zayenz wants to merge 5 commits into
feature/randomfrom
feature/breaking-7-01-build-baseline
Draft

zayenz wants to merge 5 commits into
feature/randomfrom
feature/breaking-7-01-build-baseline

Conversation

@zayenz

@zayenz zayenz commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

#274 originally held all of the Gecode 7 changes in a single branch, which became far too large to review as one PR. I split it into eleven PRs (#284 through #274), each covering a consecutive range of commits.

This first PR sets up the build and language baseline that the remaining ten PRs assume:

  • Autoconf and the maintained Makefiles are removed (deleting about 65,000 lines, including Makefile.dep, Makefile.in, and the old build scripts). Building, installing, and regenerating sources now go exclusively through CMake.
  • Gecode and its consumers require C++23.
  • CMake generates gecode/support/config.hpp with configure_file. Leftover Autoconf macros (PACKAGE_NAME, PACKAGE_VERSION, and friends) are removed in favor of GECODE_VERSION, GECODE_VERSION_NUMBER, and CMake's Gecode_VERSION. Feature macros such as GECODE_HAS_FLOAT_VARS are now defined as 1 rather than empty so #ifdef checks keep working, and GECODE_FREELIST32_SIZE_MAX and GECODE_FREELIST64_SIZE_MAX are emitted as unquoted numbers.
  • Bitset scans and population counts use <bit> (std::countr_zero and std::popcount), removing the configure probes and the GECODE_HAS_BUILTIN_FFSLL and GECODE_HAS_BUILTIN_POPCOUNTLL macros.
  • MSVC auto-linking (gecode/support/auto-link.hpp and its GECODE_NO_AUTOLINK and GECODE_LIBRARY_* macros) is removed. CMake builds always disabled it anyway, and downstream code links through the Gecode:: CMake targets.

Stack

Merge in this order. #242 targets main, and each later PR builds on the one before it so its diff shows only its own commits. The first four PRs are standalone search and random-number changes; #284 through #274 are the Gecode 7 changes split out of what used to be a single branch.

  1. Rank solutions with Space::compare in best-solution search #242 Rank solutions with Space::compare
  2. Rename the meta-search hooks to hub and spoke #282 Rename the meta-search hooks to hub and spoke
  3. Give meta search hub and spoke contexts and report why search ended #283 Hub and spoke contexts and end reasons
  4. Add extensible random generators with reproducible stream splitting #241 Splittable random generators
  5. Gecode 7: CMake-only C++23 build baseline #284 Gecode 7: build baseline ← this PR
  6. Gecode 7: format the sources with LLVM 22 #285 Gecode 7: reformat
  7. Gecode 7: normalized API names, LT constants and Clang checks #286 Gecode 7: API names, LT constants, checks
  8. Gecode 7: post nothing for empty arrays #287 Gecode 7: empty arrays
  9. Gecode 7: pass large parameters by const reference #288 Gecode 7: const& parameters
  10. Gecode 7: state and assert the heap size contract #289 Gecode 7: heap contract
  11. Gecode 7: trivially copyable handles and defaulted special members #290 Gecode 7: modern classes
  12. Gecode 7: native float interval instead of Boost #291 Gecode 7: native float interval
  13. Gecode 7: bug fixes and Doxygen warnings #292 Gecode 7: bug fixes and Doxygen
  14. Gecode 7: scoped enums and descriptive constant names #293 Gecode 7: scoped enums
  15. Gecode 7: clang-tidy sweep #274 Gecode 7: clang-tidy sweep

Zdev-Change-Id: Zf903f6efbe2c981cca719755416475e3fbd7c69a5a588158e7f14b97aa3eab86
Zdev-Change-Id: Z43822b3ed57cc2bb7ce4e44e9bbff5df76f14777f613f2de9973d7180a1d263a
Zdev-Change-Id: Z9b51ce509fa929284b7d2b251a6e3566d0e592e27e8fecd6541788b5ea30c00a

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant