Skip to content

Conversation

@alexcrichton
Copy link
Member

This commit improves the management of header files in cmake to pick up changes to them after-configure in some situations. Previously the cmake scripts would copy all wasmtime headers into the build directory to live adjacent to the conf.h-generated header. This meant that there was only one -I directory, for example, but it meant that changes to the source files after configuration weren't reflected in the output. This commit fixes this by leaving the source headers in-place. This means that there are now two include directories during building.

Various rules/targets should all be updated to handle this, and notably the build script of the C API still copies headers around as it did before (when built via Rust).

This commit improves the management of header files in cmake to pick up
changes to them after-configure in some situations. Previously the cmake
scripts would copy all wasmtime headers into the build directory to live
adjacent to the `conf.h`-generated header. This meant that there was
only one `-I` directory, for example, but it meant that changes to the
source files after configuration weren't reflected in the output. This
commit fixes this by leaving the source headers in-place. This means
that there are now two include directories during building.

Various rules/targets should all be updated to handle this, and notably
the build script of the C API still copies headers around as it did
before (when built via Rust).
@alexcrichton alexcrichton requested a review from a team as a code owner November 1, 2025 16:40
@alexcrichton alexcrichton requested review from pchickey and removed request for a team November 1, 2025 16:40
@github-actions github-actions bot added the wasmtime:c-api Issues pertaining to the C API. label Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:c-api Issues pertaining to the C API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant