[cfe-dev] [Modules] Dependency Generation
Thorsten Schütt via cfe-dev
cfe-dev at lists.llvm.org
Mon May 14 02:14:13 PDT 2018
Hi,
I am trying to create dependency files for a Makefile for modules TS.
$ cat bar.cppm
export module bar;
$ cat foo.cppm
export module foo;
import bar;
$ clang++ -MM -fmodules-ts foo.cppm
foo.cppm:3:8: fatal error: module 'bar' not found
import bar;
~~~~~~~^~~
foo.o: foo.cppm
1 error generated.
Apparently I need to know, that foo imports bar and create a bar.pcm. Otherwise, I can not query the dependencies of foo?!?
Any ideas, how to create dependency files with modules-ts?
Cheers,
Thorsten
More information about the cfe-dev
mailing list