-
Notifications
You must be signed in to change notification settings - Fork 26
docs: added documentation for preprocess table #60
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we encourage the usage of dotted keys?
[preprocess]
cpp.suffixes = ["F90", "f90"]
cpp.directories = ["src/feature1", "src/models"]
cpp.macros = ["-DMACRO1", "-DMACRO2"]
Indeed ! We can add a paragraph showing this way of writing the toml file as well. Will update this in the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thank you. I made some editorial suggestions for improved grammar and more active voice.
pages/spec/manifest.md
Outdated
```toml | ||
[preprocess] | ||
[preprocess.cpp] | ||
macros = ["FOO", "BAR"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note that we should think about the manifest syntax to set preprocessor macros to specific values, rather than just defined/undefined. For example, how to set -DPHYSICS_OPTION=2
or similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will try to design a syntax for this and try to accommodate it with what we currently have. I will send a note on discourse when done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that a common macro would be -DVERSION=...
, which is using information from the package manifest.
Thanks for reviewing @milancurcic. I have made changes as per the suggestions. |
Is this PR ready to go? |
I think I will update this with few minor pieces of documentation changes for named macros as well and how we can reuse the version number inside macros list. |
This PR is ready now. @awvwgk |
Resolved the requested changes as well. |
3d871f2
to
3a7f8e9
Compare
Sorry, tried to update the branch and messed something up. Merged with commit fb0117e. |
In this PR, I have added documentation for
preprocess
table that can be defined infpm.toml
file.