File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ CFG_LIB_NAME_i686-w64-mingw32=$(1).dll
503503CFG_STATIC_LIB_NAME_i686-w64-mingw32 =$(1 ) .lib
504504CFG_LIB_GLOB_i686-w64-mingw32 =$(1 ) -*.dll
505505CFG_LIB_DSYM_GLOB_i686-w64-mingw32 =$(1 ) -*.dylib.dSYM
506- CFG_CFLAGS_i586 -w64-mingw32 := -march=i586 -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS )
506+ CFG_CFLAGS_i686 -w64-mingw32 := -march=i686 -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS )
507507CFG_GCCISH_CFLAGS_i686-w64-mingw32 := -Wall -Werror -g -m32 -D_WIN32_WINNT=0x0600 $(CFLAGS )
508508CFG_GCCISH_CXXFLAGS_i686-w64-mingw32 := -fno-rtti $(CXXFLAGS )
509509CFG_GCCISH_LINK_FLAGS_i686-w64-mingw32 := -shared -g -m32
@@ -521,6 +521,8 @@ CFG_PATH_MUNGE_i686-w64-mingw32 :=
521521CFG_LDPATH_i686-w64-mingw32 :=$(CFG_LDPATH_i686-w64-mingw32 ) :$(PATH )
522522CFG_RUN_i686-w64-mingw32=PATH ="$(CFG_LDPATH_i686-w64-mingw32 ) :$(1 ) " $(2 )
523523CFG_RUN_TARG_i686-w64-mingw32 =$(call CFG_RUN_i686-w64-mingw32,$(HLIB$(1 ) _H_$(CFG_BUILD ) ) ,$(2 ) )
524+ # Stop rustc from OOMing when building itself (I think)
525+ RUSTC_FLAGS_i686-w64-mingw32 =-C link-args="-Wl,--large-address-aware"
524526RUSTC_CROSS_FLAGS_i686-w64-mingw32 :=
525527
526528# x86_64-w64-mingw32 configuration
You can’t perform that action at this time.
0 commit comments