Questions about the preprocess option with compilers

44 views
Skip to first unread message

Krisztián Gergő

unread,
Mar 4, 2023, 1:18:21 PM3/4/23
to The Meson Build System
Hi,

I am trying to use the preprocess option of the compiler object. What I am trying to do is:
1. preprocess a source file
2. generate stubs based on the file
3. compile using said stubs, and original source file.

I got this working, but I have a problem with the preprocessing. As far as I understand, when preprocessing, there are 4 default flags: "-E" "-P" "-x" "assembler-with-cpp"

The default usage of "-P" flag is causing a problem for me, as this makes the preprocessor omit the usage of line markers, used by my stub generation tool.

Is there any way to disable this flag for preprocessing?

Thanks in advance,
Gergő
Reply all
Reply to author
Forward
0 new messages