Skip to content

Comments

Dockerfile: use ccache for abseil#15

Open
pjonsson wants to merge 2 commits intodavidfrantz:mainfrom
pjonsson:docker-ccache-s2
Open

Dockerfile: use ccache for abseil#15
pjonsson wants to merge 2 commits intodavidfrantz:mainfrom
pjonsson:docker-ccache-s2

Conversation

@pjonsson
Copy link
Contributor

@pjonsson pjonsson commented Jan 19, 2026

Abseil is a C++ library, so that does
not use the settings from
R's Makevars. Set some variables
so CMake starts using ccache, which
makes local image builds with
a warm cache quite a bit faster.

Also disable the s2 build per #13 (comment) since that is only required by sf.

@Florian-Katerndahl
Copy link

Florian-Katerndahl commented Jan 28, 2026

This now sets three environment variables and removed them immediately afterwards. No?

Also, abseil is not built anymore because S2 is removed.

Cheers,
Florian

@pjonsson
Copy link
Contributor Author

If David wanted to permanently remove sf from the image I assume he would have done so instead of commenting it out, so I followed his lead and commented out s2 so it can be easily re-enabled in the future.

During the time these packages are commented out, the variables are just set and then immediately unset as you say, but keeping them there avoids muddling git blame.

Abseil is a C++ library, so that does
not use the settings from
R's Makevars. Set some variables
so CMake starts using ccache, which
makes local image builds with
a warm cache quite a bit faster.
This is required by sf, which is
disabled, so disable this to speed
up the image build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants