Open
Description
LLVM 16 currently adds support for c++ modules to clang/++, in addition to clang modules.
However, zig cc/c++ does not have optimal support based on the references below.
Test
zig - version 0.11.0-dev.2868+1a455b2dd
# download fork
$> git clone https://github.com/kassane/fmt
$> cd fmt/
$> zig build # add -DTests to build all tests (default libfmt only)
$> zig cc -x c++ -std=c++2b -Iinclude test/module-test.cc -o module -lc++ -Lzig-out/lib -lfmt
test/module-test.cc:47:8: fatal error: module 'fmt' not found
import fmt;
~~~~~~~^~~
1 error generated.
$> zig cc -x c++-module -std=c++2b -Iinclude test/module-test.cc -o module -lc++ -Lzig-out/lib -lfmt
error: language not recognized: 'c++-module'
cc: @Vexu => (please, add tag)