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

Make the source code ship the final sources with minimal CPP flags #4

Open
zerothi opened this issue Nov 2, 2016 · 0 comments
Open
Assignees

Comments

@zerothi
Copy link
Member

zerothi commented Nov 2, 2016

Instead of relying on a workable CPP pre-processor the source code should be generated and added to the source code list.

This means that the sources will have an extra step of preprocessing to retain some of the preprocessor flags. I.e. #ifdef MPI... etc. These should be handled by a shipped sed script with for instance:

!BUD#if*
!preprocessed statements
!BUD#endif

These may then be outlined by:

sed -e 's/^[[:space:]]*!BUD#/#/g'
@zerothi zerothi self-assigned this Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant