lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 3df7ff35 1/5: Transplant "ccache " suppressio


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 3df7ff35 1/5: Transplant "ccache " suppression
Date: Wed, 22 Feb 2023 18:09:53 -0500 (EST)

branch: master
commit 3df7ff354aac44c6d17857bc5eea9301ca2f99b6
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Transplant "ccache " suppression
    
    Rewrote commit a1b50b22daafe of 20230219T2208Z for clarity.
---
 autodependency.make | 5 +++--
 workhorse.make      | 3 +--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/autodependency.make b/autodependency.make
index bf9f9439..ee44ec74 100644
--- a/autodependency.make
+++ b/autodependency.make
@@ -110,10 +110,11 @@ MAKEDEPEND_FLAGS = \
 #   --preprocessor='gcc -E -xc-header -DRC_INVOKED -MMD -MP...'
 # but that fragile enormity isn't worth the minuscule savings that
 # '-MMD' offers, because msw resource files are typically small,
-# simple, and few.
+# simple, and few; accordingly, it costs almost nothing to forgo the
+# use of 'ccache' (which deliberately doesn't support '-MM') here.
 
 MAKEDEPEND_NON_GCC_COMMAND = \
-  $(GNU_CPP) \
+  $(subst ccache ,,$(GNU_CPP)) \
     -x c++ \
     $(ALL_CPPFLAGS) \
     $(compiler_impersonation_cppflags) \
diff --git a/workhorse.make b/workhorse.make
index 5196ea21..2bcb3a05 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -410,10 +410,9 @@ physical_closure_files := \
        $(CXX) $(MAKEDEPEND_FLAGS) -c $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $< -o$@
        $($(MAKEDEPEND_COMMAND))
 
-# ccache doesn't support '-MM'
 %.o: %.rc
        $(RC) -o $@ $(ALL_RCFLAGS) -i $<
-       $(subst ccache ,,$(MAKEDEPEND_NON_GCC_COMMAND))
+       $(MAKEDEPEND_NON_GCC_COMMAND)
 
 %$(EXEEXT):
        $(LD) -o $@ $^ $(ALL_LDFLAGS)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]