-
Notifications
You must be signed in to change notification settings - Fork 97
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
Do not install ccache unless shared_ccache is used in binarydeb #1021
base: master
Are you sure you want to change the base?
Conversation
Currently the sharing of compilation artifacts through ccache is not being done unless the shared_ccache is in use. The ccache binaries are currently being installed unconditionally. The PR changes the behaviour to install the ccache only when the shared_ccache option is being used. Signed-off-by: Jose Luis Rivero <[email protected]>
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.
This generally looks good. One nit about the import ordering.
@@ -16,7 +16,7 @@ | |||
import copy | |||
import sys | |||
|
|||
from ros_buildfarm.argument import add_argument_append_timestamp | |||
from ros_buildfarm.argument import add_argument_append_timestamp, add_argument_install_ccache |
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.
We're doing one per line for all the others. We should do that here too
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.
@@ -16,7 +16,7 @@ | |||
import copy | |||
import sys | |||
|
|||
from ros_buildfarm.argument import add_argument_append_timestamp | |||
from ros_buildfarm.argument import add_argument_append_timestamp, add_argument_install_ccache |
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.
We're doing one per line for all the others. We should do that here too. Note that will move it down to keep in alphabetical order.
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.
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.
lgtm after the fixup
Currently the sharing of compilation artifacts through ccache is conditional after #844, which enable the support for sharing with the host using the
shared_ccache
option in the build files. The ccache binaries are currently being installed unconditionally thought.The PR changes the behavior to install the ccache binaries only when the
shared_ccache
option is being used.