Hello! I’m currently working on a LLVM-based rewrite of PDT (https://www.cs.uoregon.edu/research/pdt/home.php), the auto-instrumentor that works with TAU. I’m doing source-to-source transformations and for some functionality I need to get the base compiler’s include directories. With gcc, clang, and icc, that’s easy enough with the -E -v options and a regex that looks for directory paths (I’d use -Wp,-v instead of -v, but Intel doesn’t give me what I want with that), but I haven’t been able to find documentation on getting nvc/nvc++ (or older versions of pgcc/pgc++) to dump the same information. Is there an option that does this and I’m just missing it, or is it more complicated than that?
For reference, here’s what the output from gcc that I’m like to see from nvc looks like:
gcc -E -v empty.c
[...]
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-linux-gnu/9/include
/usr/local/include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
[...]