Skip to content

Commit

Permalink
ccache: disable assembler support, it breaks kernel initramfs images
Browse files Browse the repository at this point in the history
The reason is that ccache does not recognize and process the .incbin
directive, so caching is unreliable.
See ccache/ccache#136 for more information.

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 authored and wigyori committed Feb 2, 2017
1 parent c3b0878 commit 2a72674
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tools/ccache/patches/110-disable-assembler-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
--- a/language.c
+++ b/language.c
@@ -37,14 +37,18 @@ static const struct {
{".m", "objective-c"},
{".M", "objective-c++"},
{".mm", "objective-c++"},
+#if 0
{".sx", "assembler-with-cpp"},
{".S", "assembler-with-cpp"},
+#endif
// Preprocessed:
{".i", "cpp-output"},
{".ii", "c++-cpp-output"},
{".mi", "objective-c-cpp-output"},
{".mii", "objective-c++-cpp-output"},
+#if 0
{".s", "assembler"},
+#endif
// Header file (for precompilation):
{".h", "c-header"},
{".H", "c++-header"},
@@ -109,8 +113,10 @@ static const struct {
{"objective-c++-header", "objective-c++-cpp-output"},
{"objective-c++-cpp-output", "objective-c++-cpp-output"},
{"cuda", "cuda-output"},
+#if 0
{"assembler-with-cpp", "assembler"},
{"assembler", "assembler"},
+#endif
{"f77-cpp-input", "f77"},
{"f77", "f77"},
#if 0 // Could generate module files, ignore for now!

0 comments on commit 2a72674

Please sign in to comment.