https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289746
--- Comment #2 from Salz <[email protected]> --- My request is not about the FreeBSD base build system utilizing modules, but to provide the std:: module support from clang (which is has since version 17), to the end user. This is done by installing std.cppm and the related files from that directory into the base system. Since the generated binary module "std.pcm" depends on some compiler flags (at least -std) currently every software project using the std module would build it on their own. Unfortunately I'm neither accustomed to the clang nor freebsd base build system, so I don't know where to start to provide actual patches. But I could look into it if the patch indeed would not be ease to implement. As an example how this would like from the users view, this is how I would build a modern version of C++'s hello world program on Devuan Linux: $ cat hw.cc import std; int main() { std::println("Hello World!"); } $ # build the std module $ clang++ -std=c++23 -stdlib=libc++ -Wno-reserved-identifier -Wno-reserved-module-identifier --precompile -o std.pcm /usr/lib/llvm-19/share/libc++/v1/std.cppm $ # compile hw.cc $ clang++ -std=c++23 -stdlib=libc++ -fmodule-file=std=std.pcm -c hw.cc -o hw.o $ # link hw.o $ clang++ -std=c++23 -stdlib=libc++ hw.o std.pcm -o hw $ ./hw Hello World! $ -- You are receiving this mail because: You are the assignee for the bug.
