-
Notifications
You must be signed in to change notification settings - Fork 129
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
Implement pass_defines #109
Implement pass_defines #109
Conversation
Interesting! A preliminary comment: I'm not keen on |
@eeide - How would you recommend writing it instead? |
The pattern is to have a configure-time test for finding the program, "burn" the configure-time value into a constant in the file A good example of this is the handling of Let me know if the above explanation isn't enough to get you pointed in the right direction. The detection and handling of external programs can be a bit complicated! |
So is it ok for me to add the existence of the command-line clang as a new requirement to creduce? |
That is what your patch requires, isn't it? From my quick initial reading of the patch (which I have not returned to), I understand that your new pass does not work at run time unless Whether or not Likely, it would make sense for the configure-time default to be the |
OK, thanks. By the way, you don't have to make a new GitHub pull request every time you update the patch. In some ways it is better if you do not, because making new pull requests tends to scatter the discussion of the patch. |
I know that many people prefer to have the pull request containing a few big commits (for simple things, only one). If I modify the same branch in my working tree, I need to use --force on my github repo. This is ok by me, but is that ok with you? |
This is what I would suggest: While the pull request is being discussed, just make new commits that address the issues raised during the discussion. If all goes well, and the pull request is to be merged, there might be a request for a squash at the end. (@regehr likes squashed pull requests as you describe. I like them, too, but I think I'm less picky about it, maybe.) Does that make sense? |
Yes, thanks for explaining |
No description provided.