-
Notifications
You must be signed in to change notification settings - Fork 155
Implement the '-strip' compiler option #141
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
dkl
left a comment
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.
Looks good to me. It would be useful to have changelog.txt entries for the new fbc options/behaviour changes.
|
Would you like me to add changelog.txt changes as part of this commit, or separate? |
|
Ideally in the same commit. |
|
I agree. Ideally, updates to changelog.txt:
It is helpful to see updates to changelog.txt as part of the merge commit when merging the PR to master. Not related specifically to this PR: a few of my thoughts follow, as I've been trying to take notice how we and github handle certain scenarios. Whenever we have multiple pull requests on the go, we almost always get conflicts in changelog.txt. I have tried github's method to resolve conflicts on-the-fly: it works, but it does a merge master to PR, and triggers another Travis-CI build. Not the best in my opinion as it adds the extra merge commit just to resolve changelog.txt. Rebase before merge seems like it should be OK in my opinion, resolving the conflicts locally. However, obviously must force push the new PR, and I haven't discovered the benefit of github keeping track of the force pushes yet. Also triggers another Travis-CI build. A strategy for handling changelog.txt without conflict would be helpful. But I don't know what that strategy would be. Regardless, |
This change allows users to choose whether or not to strip symbol information from the output file. The fbc '-strip' option is analogous to the ld '--strip-all' option. The ENABLE_STRIPALL compiler build option is introduced to configure whether fbc defaults to stripping symbols. This fixes issue #140.
|
I've forced-pushed an updated commit with the changelog.txt changes. Regarding your Github pull request workflow, it would be best to stick with the "Rebase and merge" option as it will keep the git history of the master branch clean without all the superfluous merge commit entries. This will benefit contributors looking back on the development history of the project, and ease debugging via The canonical way to achieve this in a pure git setup is to rebase on the local branch before fast-forwarding the master branch. In Github, this will create a new force-push entry, which triggers another Travis-CI build. Since the force-pushed commit after rebase would in theory be new -- the prescriptive context in the diff changed to accommodate the conflicting changelogs.txt of the other PR -- then another Travis-CI build would be warranted on the admittedly rare chance that some code was clobbered during the merge conflict resolution. The reason force-pushes are tracked by Github is an extension of the Github site-wide philosophy of "always retain development history". It's the same reason why pull requests and issues are closed and not deleted. It's somewhat of a nuances to track obsolete force-pushes, but I think we're stuck with it unless Github changes its policy. Though it may be useful to have retained the force-push history if we end up with a situation where the merge conflict resolution introduces a bug by accident. |
|
Thanks. Fixes #140 Also, thanks for the helpful feedback on our workflow. |
This change allows users to choose whether or not to strip symbol
information from the output file. The fbc '-strip' option is analogous
to the ld '--strip-all' option.
This fixes issue #140.