diff --git a/tools/msys/mingw32/bin/ccache.exe b/tools/msys/mingw32/bin/ccache.exe
index 36012a2c06c4156d153e0e523a40b24167feb271..8ad89f1c2a57bb6a5df3e050a44aeb987b9d5cb2 100644
Binary files a/tools/msys/mingw32/bin/ccache.exe and b/tools/msys/mingw32/bin/ccache.exe differ
diff --git a/tools/msys/mingw32/lib/ccache/bin/clang b/tools/msys/mingw32/lib/ccache/bin/clang
new file mode 100644
index 0000000000000000000000000000000000000000..70b727cc6bcd30ad9fbf962b385506226b172044
--- /dev/null
+++ b/tools/msys/mingw32/lib/ccache/bin/clang
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+ccache /mingw32/bin/clang "$@"
diff --git a/tools/msys/mingw32/lib/ccache/bin/clang++ b/tools/msys/mingw32/lib/ccache/bin/clang++
new file mode 100644
index 0000000000000000000000000000000000000000..21651473b024d07916b765fbae04159c1399d353
--- /dev/null
+++ b/tools/msys/mingw32/lib/ccache/bin/clang++
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+ccache /mingw32/bin/clang++ "$@"
diff --git a/tools/msys/mingw32/lib/ccache/bin/clang-cpp b/tools/msys/mingw32/lib/ccache/bin/clang-cpp
new file mode 100644
index 0000000000000000000000000000000000000000..a1b18ad47f2cf15259ca85d44e97ee720b797ec0
--- /dev/null
+++ b/tools/msys/mingw32/lib/ccache/bin/clang-cpp
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+ccache /mingw32/bin/clang-cpp "$@"
diff --git a/tools/msys/mingw64/bin/ccache.exe b/tools/msys/mingw64/bin/ccache.exe
index 9b4c6f37be52667f18425dbeecd157c1430927a7..4ab8ce980d09c789ee2d31ee1b6c99835e7e4af9 100644
Binary files a/tools/msys/mingw64/bin/ccache.exe and b/tools/msys/mingw64/bin/ccache.exe differ
diff --git a/tools/msys/mingw64/lib/ccache/bin/clang b/tools/msys/mingw64/lib/ccache/bin/clang
new file mode 100644
index 0000000000000000000000000000000000000000..67d03929b61e06839f3b26860e792aa7cac0fd6d
--- /dev/null
+++ b/tools/msys/mingw64/lib/ccache/bin/clang
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+ccache /mingw64/bin/clang "$@"
diff --git a/tools/msys/mingw64/lib/ccache/bin/clang++ b/tools/msys/mingw64/lib/ccache/bin/clang++
new file mode 100644
index 0000000000000000000000000000000000000000..266a5d4cd0541550ad877efec11e4ab63ebae5b7
--- /dev/null
+++ b/tools/msys/mingw64/lib/ccache/bin/clang++
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+ccache /mingw64/bin/clang++ "$@"
diff --git a/tools/msys/mingw64/lib/ccache/bin/clang-cpp b/tools/msys/mingw64/lib/ccache/bin/clang-cpp
new file mode 100644
index 0000000000000000000000000000000000000000..486fddfd954ea7c9fab0cc3543653f2481dab547
--- /dev/null
+++ b/tools/msys/mingw64/lib/ccache/bin/clang-cpp
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+ccache /mingw64/bin/clang-cpp "$@"