[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 27497568 4/5: Don't use ccache with '-fsyntax
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 27497568 4/5: Don't use ccache with '-fsyntax-only' |
Date: |
Mon, 3 Apr 2023 19:10:22 -0400 (EDT) |
branch: master
commit 27497568665cc0f8f80889f0b84f1a63e6ae90e3
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Don't use ccache with '-fsyntax-only'
The simplest way to avoid this diagnostic:
"Compiler not expected to produce an object file"
is not to use ccache with '-fsyntax-only'. See:
https://lists.nongnu.org/archive/html/lmi/2023-03/msg00004.html
and also the discussion here:
https://github.com/ccache/ccache/issues/683
---
workhorse.make | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/workhorse.make b/workhorse.make
index 09ef7f94..df0807d3 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -1082,7 +1082,7 @@ physical_closure_files := \
check_physical_closure: $(physical_closure_files)
%.physical_closure: %
- @$(GNU_CXX) \
+ @$(subst ccache ,,$(GNU_CXX)) \
-DLMI_IGNORE_PCH \
$(ALL_CPPFLAGS) $(ALL_CXXFLAGS) \
-x c++ -w -O0 -fsyntax-only $<