Crafter.Build/examples/with-module
Jorijn van der Graaf 8892154b28
Some checks failed
CI / build-test-release (push) Failing after 7m15s
linting
2026-07-23 01:24:42 +02:00
..
interfaces linting 2026-07-23 01:24:42 +02:00
main.cpp linting 2026-07-23 01:24:42 +02:00
project.cpp linting 2026-07-23 01:24:42 +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.