[OpenWrt-Devel] [PATCH] Make ccache aware of OpenWRT provided GCC patch.

Felix Fietkau nbd at openwrt.org
Tue Jul 14 05:58:53 EDT 2015


On 2015-07-14 11:38, Karl Vogel wrote:
> The OpenWRT GCC patch, 910-mbsd_multi.patch adds an extra option
> to gcc that depends on an environment variable. Standard ccache
> is unaware of this option and therefor can produce stdout from gcc
> that doesn't correspond to what you would get if you actually
> do a direct compilation with gcc.
> 
> This commit adds a patch to ccache to make it aware of the new
> option and removes the feature from the ccache package to use the
> host system's installed ccache binary.
> ---
> +--- a/ccache.c
> ++++ b/ccache.c
> +@@ -965,6 +965,7 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode)
> + 			"CPLUS_INCLUDE_PATH",
> + 			"OBJC_INCLUDE_PATH",
> + 			"OBJCPLUS_INCLUDE_PATH", /* clang */
> ++                        "GCC_HONOUR_COPTS",
Indentation is broken here (whitespaces vs tabs).

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list