forked from 0ad/0ad
Add a linker flag on Windows allowing the game to be large address aware. This allows the game to use more than 2GB of RAM. https://msdn.microsoft.com/en-us/library/wz223b1z.aspx
However, this can mask memory issues, so this flag will not be enabled by default. The autobuilder will use it, so SVN playtesters and release users can benefit from it. Windows users compiling the game themselves will have the 2GB limitation. Fixes #4190, refs #1619, #4191 Flag tested by Stan This was SVN commit r18711.
This commit is contained in:
parent
64b1da0ddf
commit
a8403bd7e5
@ -24,6 +24,7 @@ newoption { trigger = "sysroot", description = "Set compiler system root path, u
|
|||||||
-- Windows specific options
|
-- Windows specific options
|
||||||
newoption { trigger = "build-shared-glooxwrapper", description = "Rebuild glooxwrapper DLL for Windows. Requires the same compiler version that gloox was built with" }
|
newoption { trigger = "build-shared-glooxwrapper", description = "Rebuild glooxwrapper DLL for Windows. Requires the same compiler version that gloox was built with" }
|
||||||
newoption { trigger = "use-shared-glooxwrapper", description = "Use prebuilt glooxwrapper DLL for Windows" }
|
newoption { trigger = "use-shared-glooxwrapper", description = "Use prebuilt glooxwrapper DLL for Windows" }
|
||||||
|
newoption { trigger = "large-address-aware", description = "Make the executable large address aware. Do not use for development, in order to spot memory issues easily" }
|
||||||
|
|
||||||
-- Install options
|
-- Install options
|
||||||
newoption { trigger = "bindir", description = "Directory for executables (typically '/usr/games'); default is to be relocatable" }
|
newoption { trigger = "bindir", description = "Directory for executables (typically '/usr/games'); default is to be relocatable" }
|
||||||
@ -974,6 +975,12 @@ function setup_main_exe ()
|
|||||||
"/DELAY:UNLOAD",
|
"/DELAY:UNLOAD",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- allow the executable to use more than 2GB of RAM.
|
||||||
|
-- this should not be enabled during development, so that memory issues are easily spotted.
|
||||||
|
if _OPTIONS["large-address-aware"] then
|
||||||
|
linkoptions { "/LARGEADDRESSAWARE" }
|
||||||
|
end
|
||||||
|
|
||||||
-- see manifest.cpp
|
-- see manifest.cpp
|
||||||
project_add_manifest()
|
project_add_manifest()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user