From: peterbudai@hotmail.com Date: Wed, 28 Mar 2018 20:20:12 +0000 (+0200) Subject: win32: Fix CCACHE_COMPILERCHECK=mtime test case X-Git-Tag: v3.4.3~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=331d2e0334fcc294fbd6ecccdc7fbd0479909eec;p=thirdparty%2Fccache.git win32: Fix CCACHE_COMPILERCHECK=mtime test case Previously if compiler command was an .sh script, win32 version automatically added an .EXE extension to the command line and then test case failed. With this change .sh files won't get appended by an EXE extension and test case successfully runs --- diff --git a/src/execute.c b/src/execute.c index df8fe5b6a..ae3055203 100644 --- a/src/execute.c +++ b/src/execute.c @@ -115,6 +115,7 @@ win32getshell(char *path) void add_exe_ext_if_no_to_fullpath(char *full_path_win_ext, size_t max_size, const char *ext, const char *path) { if (!ext || (!str_eq(".exe", ext) + && !str_eq(".sh", ext) && !str_eq(".bat", ext) && !str_eq(".EXE", ext) && !str_eq(".BAT", ext))) {