From 5bede5ae58c083b592f031918b34da3f1a02a98b Mon Sep 17 00:00:00 2001 From: jove Date: Mon, 4 Mar 2024 00:08:49 +0000 Subject: [PATCH] Fix mingw builds --- Makefile | 1 + src/catalua_luna_doc.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8e7402f4a7c3..cc4985ab79cf 100644 --- a/Makefile +++ b/Makefile @@ -582,6 +582,7 @@ ifeq ($(TARGETSYSTEM),WINDOWS) BINDIST_CMD = $(W32BINDIST_CMD) ODIR = $(W32ODIR) ODIRLUA = $(W32ODIRLUA) + OTHER += -Wa,-mbig-obj ifeq ($(DYNAMIC_LINKING), 1) # Windows isn't sold with programming support, these are static to remove MinGW dependency. LDFLAGS += -static-libgcc -static-libstdc++ diff --git a/src/catalua_luna_doc.h b/src/catalua_luna_doc.h index c5c4c942bf9b..574a777c3c3e 100644 --- a/src/catalua_luna_doc.h +++ b/src/catalua_luna_doc.h @@ -81,7 +81,7 @@ LUNA_DOC( bool, "bool" ); LUNA_DOC( int, "int" ); LUNA_DOC( unsigned int, "int" ); LUNA_DOC( std::int64_t, "int" ); -LUNA_DOC( size_t, "int" ); +//LUNA_DOC( size_t, "int" ); This conflicts with the previous unsigned int def on some systems LUNA_DOC( float, "double" ); LUNA_DOC( double, "double" ); LUNA_DOC( void, "nil" );