Repository navigation
build: portable build with the cth package, ci - #1
Merged
Merged
Conversation
added 16 commits
October 5, 2026 02:45
find_package(cth COMPONENTS cth) loads the header only core from the package in lib/cth. No separately installed cth needed anymore.
Replaces the windows only cth::win file mapping and unbuffered read. dyn_load keeps the data alive, the returned string_view pointed into the released mapping before.
enable_testing() ran after the subprojects were added, so ctest saw no tests. The targets already enable buildcache with OPTIONAL.
…_steps Raises the limit for gcc and clang, as_cxpr_array evaluates the word list split twice.
Same pipeline as cth and cth_cmake: linux (gcc, clang) in a CachyOS container, windows (msvc, clang 23).
msvc has no #embed. Compilers without __has_embed read the word list file at runtime instead of embedding it.
Built from cth 932ab8f: std range formatting, as_cxpr_array.
A letter only counted as coverable if some word started or ended with it, so puzzles where a letter only appears inside words (q in squaw, v in wavy) were reported unsolvable without searching. The union of all word masks has to cover every letter instead.
Splits solve into init_nodes, build_graph and trace_solutions, names the interchangeable words of an edge and gives solutions a formatter. Removes the unused incoming counter.
Removes the unused precompute_word_list.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lib/cth(built from cth master),find_package(cth COMPONENTS cth)loads only the header only corecth::io::file::readinstead of the windows onlycth::winmapping / unbuffered read<cstddef>, ctest registration order, buildcache optional, constexpr steps viacth_target_set_constexpr_stepsboost-asioremovedBuilds, tests and solves on linux with gcc 16 and clang 23. Windows (and whether msvc supports
#embed) is checked by this PR's CI.