-
Notifications
You must be signed in to change notification settings - Fork 184
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
Improve usage of ccache to speed up builds #396
base: master
Are you sure you want to change the base?
Commits on Oct 19, 2017
-
build : Revise setupccache() and add provide_ccache()
Improvements: * allow to mount a directory from worker's host OS as the /.ccache/ in the build root, so cache can be shared (including over NFS; tested for an ARM+AMD64 farm) * use a /.ccache-bin/ rather than /var/lib/build/ccache/bin (easier to clean out) * more reliably test for presence of compilers where absolute symlinks are used in build root (e.g. debian alternatives) * allow fallback use of a ccache binary provided by the worker's host OS * in case of cleanup, hit not only compiler basenames but also possible suffixes (arch, version, etc.)
Configuration menu - View commit details
-
Copy full SHA for 3ab32f4 - Browse repository at this point
Copy the full SHA 3ab32f4View commit details -
build : help debug ccache usage in the common logfile
If ccache was used in this build, optionally display its log in the end of build, so packagers know better if their recipes need to be tuned to take advantage of ccache (tune relative paths to source, etc.) This should be enabled either via command-line arguments to "build", or caller can also enforce this via envvars (e.g. /etc/sysconfig/obs-worker file) with `export DO_CCACHE_STATISTICS=1`
Configuration menu - View commit details
-
Copy full SHA for 9c816e1 - Browse repository at this point
Copy the full SHA 9c816e1View commit details -
build-recipe-preinstallimage build-recipe-simpleimage : do not includ…
…e ccache artefacts into produced images
Configuration menu - View commit details
-
Copy full SHA for ec60789 - Browse repository at this point
Copy the full SHA ec60789View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38db1cd - Browse repository at this point
Copy the full SHA 38db1cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a429a6 - Browse repository at this point
Copy the full SHA 1a429a6View commit details -
build : revert from NO_CCACHE_STATS inverse envvar to PROFILE_CCACHE_…
…STATS that can be used to enable details while sourcing configs (e.g. via worker setup)
Configuration menu - View commit details
-
Copy full SHA for 477c72a - Browse repository at this point
Copy the full SHA 477c72aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bea0fb - Browse repository at this point
Copy the full SHA 6bea0fbView commit details -
build : make ccache logging an optional feature - it has overheads; a…
…lso pre-create the /.build.log.ccache and chown it to abuild user
Configuration menu - View commit details
-
Copy full SHA for 0ee7409 - Browse repository at this point
Copy the full SHA 0ee7409View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d17f0d - Browse repository at this point
Copy the full SHA 9d17f0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85a1791 - Browse repository at this point
Copy the full SHA 85a1791View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44f5fa7 - Browse repository at this point
Copy the full SHA 44f5fa7View commit details
Commits on Nov 1, 2017
-
Configuration menu - View commit details
-
Copy full SHA for c9c85f5 - Browse repository at this point
Copy the full SHA c9c85f5View commit details
Commits on Nov 6, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 9268f20 - Browse repository at this point
Copy the full SHA 9268f20View commit details
Commits on Apr 12, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 50462df - Browse repository at this point
Copy the full SHA 50462dfView commit details