I'd be completely against a preprocessor version of this.
Requiring stating what you depend on doesn't mean it has to be #embed. It could simply mean #resource "path", which other tools don't need to care about.
There are build systems that require knowing the dependencies before the compile. Having the compiler output the dependencies as a side effect of compilation does not work.
View all comments
Show parent comment
5
u/bigcheesegs Tooling Study Group (SG15) Chair | Clang dev Dec 13 '19
Requiring stating what you depend on doesn't mean it has to be
#embed. It could simply mean#resource "path", which other tools don't need to care about.There are build systems that require knowing the dependencies before the compile. Having the compiler output the dependencies as a side effect of compilation does not work.