Skip to content

Fast rebuilds of C/C++ code when needed.#106

Merged
StephenOman merged 2 commits intoNetHack-LE:mainfrom
jbcoe:jbcoe/ccache-fast-rebuilds
Mar 18, 2026
Merged

Fast rebuilds of C/C++ code when needed.#106
StephenOman merged 2 commits intoNetHack-LE:mainfrom
jbcoe:jbcoe/ccache-fast-rebuilds

Conversation

@jbcoe
Copy link
Collaborator

@jbcoe jbcoe commented Mar 14, 2026

Configures CMake to use ccache for faster C/C++ compilation. Modifies pyproject.toml to enable editable.rebuild and specify build-dir for scikit-build-core, ensuring fast, incremental rebuilds when C/C++ sources or project metadata change.

Configures `CMake` to use `ccache` for faster C/C++ compilation.
Modifies `pyproject.toml` to enable `editable.rebuild` and specify
`build-dir` for `scikit-build-core`, ensuring fast, incremental
rebuilds when C/C++ sources or project metadata change.
@jbcoe jbcoe marked this pull request as ready for review March 14, 2026 16:21
@jbcoe jbcoe marked this pull request as draft March 14, 2026 19:10
@jbcoe jbcoe marked this pull request as ready for review March 14, 2026 19:27
@StephenOman StephenOman added the enhancement New feature or request label Mar 15, 2026
@StephenOman StephenOman merged commit 0b96483 into NetHack-LE:main Mar 18, 2026
19 checks passed
@jbcoe
Copy link
Collaborator Author

jbcoe commented Mar 19, 2026

This seems incompatible with use of Python from within the CMake build and may need rolling back.

See #87

@jbcoe jbcoe deleted the jbcoe/ccache-fast-rebuilds branch March 19, 2026 14:24
jbcoe added a commit to jbcoe/nle-nethack that referenced this pull request Mar 20, 2026
This reverts commit 0b96483.

Fast rebuilds with uv and scikit-build and use of Python tooling
within a CMake build are incompatible. The isolated environment
used for the build means that the Python executable cached in the
build directory is not valid when the build directory is used for
a rebuild.
StephenOman pushed a commit that referenced this pull request Mar 21, 2026
This reverts commit 0b96483.

Fast rebuilds with uv and scikit-build and use of Python tooling
within a CMake build are incompatible. The isolated environment
used for the build means that the Python executable cached in the
build directory is not valid when the build directory is used for
a rebuild.
jbcoe added a commit to jbcoe/nle-nethack that referenced this pull request Mar 21, 2026
This reverts commit 0b96483.

Fast rebuilds with uv and scikit-build and use of Python tooling
within a CMake build are incompatible. The isolated environment
used for the build means that the Python executable cached in the
build directory is not valid when the build directory is used for
a rebuild.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants