Option to dump all include directories (like gcc/clang/icc -E -v)?

Hello! I’m currently working on a LLVM-based rewrite of PDT (PDT - Program Database Toolkit -), 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:
End of search list.

Would our “-drystdinc” flag work? Assuming all you’re looking for is the default include paths, this may be easier to parse than having to wade through the full post-process file and verbose compiler output.

% /proj/nv/Linux_x86_64/21.3/compilers/bin/nvc  --help | grep drystdinc
-drystdinc          Display standard include directories and exit
% /proj/nv/Linux_x86_64/21.3/compilers/bin/nvc -drystdinc

Yep, that’s exactly what I’m looking for! Thanks, Mat!