Hello. I’m trying to package a library+application thingy which uses clang’s python bindings (which I’ve already packaged) in its build process and it needs to set in proper flags, include paths, etc… to its python methods calls / configuration classes.
Is there a way to obtain these flags and paths? I can e.g. add clang_9 wrapper as a buildInput or use llvmPackages_9.stdenv.mkDerivation and call clang -v -E - < /dev/null and extract various settings from the output but it seems very cumbersome and error-prone.
It there a better way?
I’d like to get at least the include paths. How does the clang wrapper obtain them anyway?
Thanks