Replies: 1 comment 1 reply
-
I don't believe there is a valid way to get at the raw compile arguments at this time. Could you provide some more information on what the pre-processing step you need to do is? We may be able to find an alternative way to approach this within the existing system |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm learning Meson and practicing some scenarios I expect to need to support. One such scenario is running a code generation step on C++ source files. I want to run a compiler pre-pass over source files, parse some information, and output a new C++ file to compile in addition to the original. I need to know the set of compiler arguments that will be used with the original file when I perform the pre-pass.
Input
Output
Here's what I have so far in my build file:
There's
get_option('cpp_args')
, but that's just extra arguments and not all arguments.In theory I could read
compile_commands.json
manually in the code-gen script. However, this means everycustom_target
invocation has to re-parse a json file.Beta Was this translation helpful? Give feedback.
All reactions