summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeterbudai@hotmail.com <peterbudai@hotmail.com>2018-03-28 22:20:12 +0200
committerJoel Rosdahl <joel@rosdahl.net>2018-03-30 21:06:00 +0200
commit331d2e0334fcc294fbd6ecccdc7fbd0479909eec (patch)
tree9969b5124137a003f606fa80a6068eacf68a0f0a
parentb1f509c3b2d492b182d3b892b67dae48c6c9d8b5 (diff)
downloadccache-331d2e0334fcc294fbd6ecccdc7fbd0479909eec.tar.gz
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
-rw-r--r--src/execute.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/execute.c b/src/execute.c
index df8fe5b6..ae305520 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))) {