[Scons-users] ParseDepends and duplicate with variant directories
Gaurav Juvekar
gauravjuvekar at gmail.com
Mon Dec 18 12:46:29 EST 2017
Hi,
> You might consider picking up the pull request still on bitbucket for a
> more complete C scanner implementation which does much of the preprocessor
> logic.
Instead of improving the C scanner implementation, would a patch be accepted for a scanner that actually invokes the compiler with all the flags and then uses ParseDepends? It just seems "more correct" to use the compiler generated dependencies instead of parsing the file using a scanner like it's currently done. This way, the compiler can handle any crazy include combinations (even those that rely on compiler builtins such as #include_next). I know that this could be way slower than using a parser in Python.
>
> What's driving you to use the compiler itself to generate the dependencies?
>
Crazy organization in a third-party project whose source I can't change.
--
Regards,
Gaurav Juvekar
More information about the Scons-users
mailing list