From cad4bcb314a86134f14a0d2e1d44141f50a20e61 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 14 Jul 2011 21:46:58 +0200 Subject: [PATCH] config: Use compiler from conf struct --- ccache.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ccache.c b/ccache.c index 9b44fcac9..bdd6a8784 100644 --- a/ccache.c +++ b/ccache.c @@ -1218,7 +1218,6 @@ static void find_compiler(int argc, char **argv) { char *base; - char *path; char *compiler; orig_args = args_init(argc, argv); @@ -1237,8 +1236,8 @@ find_compiler(int argc, char **argv) } /* support user override of the compiler */ - if ((path = getenv("CCACHE_CC"))) { - base = x_strdup(path); + if (!str_eq(conf->compiler, "")) { + base = conf->compiler; } compiler = find_executable(base, MYNAME); -- 2.47.3