Project

General

Profile

Feature #2945

Use "--config-cache" configure option to speed up builds

Added by laforge 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
jenkins
Target version:
-
Start date:
02/14/2018
Due date:
% Done:

0%

Spec Reference:

Description

A lot of time is spent in ./configure rather than actual builds, which hurts build test performance.

One option would be to to have a persistent directory on each slave where we keep config.cache files for all the various projects. The call would then look like:

./configure --config-cache --cache-file=/foo/bar/`basename $PWD`/config.cache

at which point we can expect at least a 50% reduction (probably more on loaded systems) in ./configure time. One could include $JOB_NAME into the --cache-file path to be safe?

History

#1 Updated by zecke 3 months ago

Good idea! I asked Paolo Bonzini for some help but I found a link to https://gitlab.com/gnuwget/wget2/wikis/Developer-hints:-Increasing-speed-of-GNU-toolchain#cccflags-dependent-usage-of-configure-caching in a mailing list (I don't think it is public) I am subscribed to.

Not sure if we would already win just caching system wide settings?

Also available in: Atom PDF