Skip to content
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

Recipes to run the preprocessor #44

Open
jscrane opened this issue Apr 6, 2024 · 0 comments
Open

Recipes to run the preprocessor #44

jscrane opened this issue Apr 6, 2024 · 0 comments

Comments

@jscrane
Copy link
Owner

jscrane commented Apr 6, 2024

See here.

For detecting which libraries to include in the build, and for generating function prototypes, (just) the preprocessor is run. For this, the recipe.preproc.macros recipe exists. This recipe must run the preprocessor on a given source file, writing the preprocessed output to a given output file, and generate (only) preprocessor errors on standard output. This preprocessor run should happen with the same defines and other preprocessor-influencing-options as for normally compiling the source files.

This came to light trying to compile src/TommyPROM/HardwareVerify: it fails due to a missing function prototype.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant