[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master d08de504 4/5: Use ccache with autotooled libr
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master d08de504 4/5: Use ccache with autotooled libraries |
Date: |
Fri, 3 Mar 2023 09:35:43 -0500 (EST) |
branch: master
commit d08de504cf88b05d949ef27b92a843c76e3203df
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Use ccache with autotooled libraries
---
install_msw.sh | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/install_msw.sh b/install_msw.sh
index b80b585d..272cbce0 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -304,10 +304,19 @@ do
# to be independent of lmi's runtime path.
export PATH="$minimal_path"
- ./install_xml_libraries.sh
-
- ./install_wx.sh
- ./install_wxpdfdoc.sh
+ # Add ccache's symlinks directory because that's the least awful
+ # way to get ccache to work with autotools--see:
+ # https://lists.nongnu.org/archive/html/lmi/2023-02/msg00027.html
+ autotooled_path=/usr/lib/ccache:"$minimal_path"
+ # and use a separate cache directory so that by default
+ # ccache --show-stats -vv
+ # shows the outcome of lmi's more careful method.
+ autotooled_cache=/srv/cache_for_lmi/ccache_autotooled
+
+ CCACHE_DIR="$autotooled_cache" PATH="$autotooled_path"
./install_xml_libraries.sh
+
+ CCACHE_DIR="$autotooled_cache" PATH="$autotooled_path" ./install_wx.sh
+ CCACHE_DIR="$autotooled_cache" PATH="$autotooled_path"
./install_wxpdfdoc.sh
find /srv/cache_for_lmi/downloads -type f -print0 | xargs --null md5sum