Skip to content
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

Remove ccache from depends subsystem #3187

Merged
merged 2 commits into from
Nov 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/build_src.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ "$PULL_REQUEST" != "false" ]; then contrib/devtools/commit-script-check.sh

#if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/check-doc.py; fi TODO reenable after all Bitcoin PRs have been merged and docs fully fixed

depends/$HOST/native/bin/ccache --max-size=$CCACHE_SIZE
ccache --max-size=$CCACHE_SIZE

if [ -n "$USE_SHELL" ]; then
export CONFIG_SHELL="$USE_SHELL"
Expand Down
1 change: 0 additions & 1 deletion depends/config.site.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ LDFLAGS="-L$depends_prefix/lib $LDFLAGS"
CC="@CC@"
CXX="@CXX@"
OBJC="${CC}"
CCACHE=$depends_prefix/native/bin/ccache
PYTHONPATH=$depends_prefix/native/lib/python/dist-packages:$PYTHONPATH

if test -n "@AR@"; then
Expand Down
25 changes: 0 additions & 25 deletions depends/packages/native_ccache.mk

This file was deleted.

1 change: 0 additions & 1 deletion depends/packages/packages.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
packages:=boost openssl libevent zeromq gmp chia_bls backtrace
native_packages := native_ccache

qt_native_packages = native_protobuf
qt_packages = qrencode protobuf zlib
Expand Down
8 changes: 4 additions & 4 deletions doc/build-generic.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ If you want to build for the same host but different distro, add `--enable-glibc

ccache
------
The depends system also contains [ccache](https://ccache.samba.org/), which caches build results on source->object
level. `./configure` of Dash Core will autodetect the presence of ccache and enable use of it. To disable ccache, use
`./configure --prefix=<prefix> --disable-ccache`.
`./configure` of Dash Core will autodetect the presence of ccache and enable use of it. To disable ccache, use
`./configure --prefix=<prefix> --disable-ccache`. When installed and enabled, [ccache](https://ccache.samba.org/) will
cache build results on source->object level.

The default maximum cache size is 5G, which might not be enough to cache multiple builds when switching Git branches
very often. It is advised to increase the maximum cache size:

```bash
$ ./depends/<host>/native/bin/ccache -M20G
$ ccache -M20G
```

Additional Configure Flags
Expand Down