Crafter.Build/examples/with-module
Jorijn van der Graaf 7ff426b2f0
Some checks failed
CI / build-test-release (push) Failing after 5m36s
SPDX license update
Canonical LGPL-3.0-only text, GPL-3.0 companion, SPDX headers on all
first-party sources, MIT for examples/. Vendored lib/ untouched.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-22 18:19:17 +02:00
..
interfaces SPDX license update 2026-07-22 18:19:17 +02:00
main.cpp SPDX license update 2026-07-22 18:19:17 +02:00
project.cpp SPDX license update 2026-07-22 18:19:17 +02:00
README.md V2: WASI, -r flag, CI pipeline, examples & tests cleanup 2026-04-28 23:24:46 +02:00

with-module

Adds a C++ module interface (interfaces/Greeter.cppm) imported by main.cpp.

cd examples/with-module
crafter-build
./bin/greeter-app-x86_64-pc-linux-gnu-native/greeter-app

Interfaces are listed by their stem path (relative to cfg.path, no .cppm extension). The build emits Greeter.pcm once and main_impl.o consumes it. Touching interfaces/Greeter.cppm causes only main_impl.o to recompile, not the whole world.