-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picking up a compiler's predefined macros in the wave driver #110
Comments
Have you tried using the |
Thank you for notifying me about the -F option. That actually worked but since the file produced by a compiler also includes Wave predefined macros I get the message from the wave driver when it reads in the file:
and wave does not process the file I am passing to it to expand macros. Should it not continue anyway and do its expansion ? |
|
We could make it so that it is possible to redefine the basic macros in a file included using |
Either case would be fine. If I manually remove the defines for |
A number of compilers have commands to output the predefined macros for the compiler regardless of any source file and just depending on the command line to the compiler. The output is always of the form for each line:
#define SOME_MACRO SOME_EXPANSION
It would be nice if the Wave driver program could just pick up a file of these predefined macros as is, using its @filepath syntax for the file, and process it as predefined macros, rather than having to transform each define from the form above to the wave acceptable form of:
-P SOME_MACRO=SOME_EXPANSION
I understand that I can use some program or regex to transform the compiler's output file to the form which the wave driver accepts, but for convenience sake it would be nice if the wave driver accepted the first form above.
The text was updated successfully, but these errors were encountered: