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

Move some build defines to a separate config.h file #38

Open
vinipsmaker opened this issue Feb 25, 2014 · 0 comments
Open

Move some build defines to a separate config.h file #38

vinipsmaker opened this issue Feb 25, 2014 · 0 comments

Comments

@vinipsmaker
Copy link
Owner

Currently build exposes ALL configure-time defines to the sources appending arguments to the compilder command line.

This choice is suboptimal, because exposes unneeded defines to files not wanting it and, worse, it will recompile every source file if you change the configure-time defines.

Solution: Create a config.h (preferably out-of-tree in shadow builds) build-time generated file to aggregate all these changes. The config.h file could have its own directory, then the -I compiler arg wouldn't expose more files than needed.

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