--clang-macro-fallback
interaction with -Wp,-MMD,file.d
#3070
Labels
--clang-macro-fallback
interaction with -Wp,-MMD,file.d
#3070
--clang-macro-fallback
, when asking the preprocessor to generate a dependencies file, changes behavior.For instance, given a header that would benefit from
--clang-macro-fallback
, such as:Then
would generate a dependencies file like:
x.o: x.h
However, if we pass
--clang-macro-fallback
, e.g.then it generates something like:
macro_eval.o: ...abspath.../x-precompile.h ...abspath.../x.h .macro_eval.c
This was reduced from trying to use the
--clang-macro-fallback
feature in the Linux kernel (mailing list post including a kernel patch to test/debug the feature).A possible workaround may be to run
bindgen
twice.Cc @jbaublitz
The text was updated successfully, but these errors were encountered: