From b5f203c88870fafe141be51099ed00e3ddd25451 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Sat, 1 Apr 2017 16:40:50 +0200 Subject: [PATCH] mxe_build.sh - Rebuild everyth. when switching between debug and release When switching between debug and release MXE build one needs to rebuild everything. Signed-off-by: Stefan Fuchs --- packaging/windows/mxe-based-build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packaging/windows/mxe-based-build.sh b/packaging/windows/mxe-based-build.sh index a6d6a1930..2c10d4474 100755 --- a/packaging/windows/mxe-based-build.sh +++ b/packaging/windows/mxe-based-build.sh @@ -113,9 +113,17 @@ if [[ "$1" == "debug" ]] ; then RELEASE="Debug" DLL_SUFFIX="d" shift + if [[ -f Release ]] ; then + rm -rf * + fi + touch Debug else RELEASE="Release" DLL_SUFFIX="" + if [[ -f Debug ]] ; then + rm -rf * + fi + touch Release fi # grantlee