-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
SCons: Add object_prefix
option
#62652
SCons: Add object_prefix
option
#62652
Conversation
That's a pretty niche use case, I'm not sure it's worth adding an option just for this. Most IDEs will not show you the object files so the clutter shouldn't be a problem for development. And hiding several GBs worth of object files doesn't strike me as a good workflow to encourage. |
Object files are intermediate artifacts, not unlike imports in scons lacks out of tree builds, prefixing object files with I was hoping it might be useful for developers like myself who develop without an IDE. Such workflow maybe niche, but I prefer simplicity. Alternative to this patch is hacking Three lines for an option, and not a default one as to avoid affecting existing workflows, hardly seems like much to add for the gained simplicity. I'm not extremely attached to this patch, and am fine with it not being accepted, but hope you can see how it could be beneficial and give it consideration. |
1aa8f11
to
4e7fa2d
Compare
Indeed, CLion shows the In my mind, these output files can be put in separation from the source files, such as in a and this fix does help! |
This is such a small change, and wouldn't require much maintenance, since the |
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.
Seems fine.
Needs rebase. |
Add `object_prefix` as an scons option to add a custom prefix to all generated object files, via the `OBJPREFIX` and `SHOBJPREFIX` environment variables. This is useful for instance to hide object files on unix-like systems and make the source directories less cluttered by setting `object_prefix = '.'` in `custom.py`.
4e7fa2d
to
a1e5ab6
Compare
object_prefix
option
Thanks! |
Add
object_prefix
as an scons option to add a custom prefix to all generated object files, via theOBJPREFIX
andSHOBJPREFIX
environment variables.This is useful for instance to hide object files on unix-like systems and make the source directories less cluttered by setting
object_prefix = '.'
incustom.py
.