]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
win32: Fix CCACHE_COMPILERCHECK=mtime test case
authorpeterbudai@hotmail.com <peterbudai@hotmail.com>
Wed, 28 Mar 2018 20:20:12 +0000 (22:20 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 30 Mar 2018 19:06:00 +0000 (21:06 +0200)
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

src/execute.c

index df8fe5b6a101d11f0130f08c53cae01d9ec5cf95..ae30552030725397561f8f02f005fa8a8d9cf8f9 100644 (file)
@@ -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))) {