From a2d54c3d97104be1c35bc98a9e49df018e41495e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 22 Feb 2017 10:17:33 +0100 Subject: [PATCH] The return of the w64 debug build --- tools/x-win/compile.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/x-win/compile.sh b/tools/x-win/compile.sh index 58350f9e62..6c0553b326 100755 --- a/tools/x-win/compile.sh +++ b/tools/x-win/compile.sh @@ -63,9 +63,17 @@ export WINRC=${XPREFIX}-windres export RANLIB=${XPREFIX}-ranlib export DLLTOOL=${XPREFIX}-dlltool +if grep -q optimize <<<"$ARDOURCFG"; then + OPT="" +else + #debug-build luabindings.cc, has > 60k symbols. + # -Wa,-mbig-obj has an unreasonable long build-time + # -Og to the rescue. + OPT=" -Og" +fi -CFLAGS="-mstackrealign" \ -CXXFLAGS="-mstackrealign" \ +CFLAGS="-mstackrealign$BIGOBJ" \ +CXXFLAGS="-mstackrealign$BIGOBJ" \ LDFLAGS="-L${PREFIX}/lib" ./waf configure \ --keepflags \ --dist-target=mingw \ -- 2.30.2