diff --git a/.github/workflows/snapshot-on-push-master.yml b/.github/workflows/snapshot-on-push-master.yml index 674a2cddf..fcefa10d8 100644 --- a/.github/workflows/snapshot-on-push-master.yml +++ b/.github/workflows/snapshot-on-push-master.yml @@ -75,13 +75,13 @@ jobs: - name: Build and package 64-bit Windows versions of the tools. run: | make -C src clean - make -j2 bin USER_CFLAGS="-D__USE_MINGW_ANSI_STDIO=1 -Werror" CROSS_COMPILE=x86_64-w64-mingw32- + make -j2 bin USER_CFLAGS=-Werror CROSS_COMPILE=x86_64-w64-mingw32- make zip mv cc65.zip cc65-snapshot-win64.zip - name: Build and package 32-bit Windows versions of the tools. run: | make -C src clean - make -j2 bin USER_CFLAGS="-D__USE_MINGW_ANSI_STDIO=1 -Werror" CROSS_COMPILE=i686-w64-mingw32- + make -j2 bin USER_CFLAGS=-Werror CROSS_COMPILE=i686-w64-mingw32- make zip mv cc65.zip cc65-snapshot-win32.zip diff --git a/src/cc65/codegen.c b/src/cc65/codegen.c index c9e71de64..b149b7dda 100644 --- a/src/cc65/codegen.c +++ b/src/cc65/codegen.c @@ -65,7 +65,12 @@ #include "util.h" #include "codegen.h" - +/* this is a terrible hack that tries to combat the ever reoccuring issue with + mingw and PRIXPTR */ +#defined(__MINGW64__) +#undef PRIXPTR +#define PRIXPTR "%p" +#endif /*****************************************************************************/ /* Helpers */