From 9580dc66652a2966f09fb2e7b7127e0d941151aa Mon Sep 17 00:00:00 2001
From: na-Itms <na.itms76@gmail.com>
Date: Mon, 5 Sep 2016 10:25:06 +0200
Subject: [PATCH 2/2] Large address aware
---
build/premake/premake4.lua | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/build/premake/premake4.lua b/build/premake/premake4.lua
index 4a6d930..5c5c554 100644
a
|
b
|
newoption { trigger = "sysroot", description = "Set compiler system root path, u
|
24 | 24 | -- Windows specific options |
25 | 25 | newoption { trigger = "build-shared-glooxwrapper", description = "Rebuild glooxwrapper DLL for Windows. Requires the same compiler version that gloox was built with" } |
26 | 26 | newoption { trigger = "use-shared-glooxwrapper", description = "Use prebuilt glooxwrapper DLL for Windows" } |
| 27 | newoption { trigger = "large-address-aware", description = "Make the executable large address aware. Do not use for development, in order to spot memory issues easily" } |
27 | 28 | |
28 | 29 | -- Install options |
29 | 30 | newoption { trigger = "bindir", description = "Directory for executables (typically '/usr/games'); default is to be relocatable" } |
… |
… |
function setup_main_exe ()
|
974 | 975 | "/DELAY:UNLOAD", |
975 | 976 | } |
976 | 977 | |
| 978 | -- allow the executable to use more than 2GB of RAM. |
| 979 | -- this should not be enabled during development, so that memory issues are easily spotted. |
| 980 | if _OPTIONS["large-address-aware"] then |
| 981 | linkoptions { "/LARGEADDRESSAWARE" } |
| 982 | end |
| 983 | |
977 | 984 | -- see manifest.cpp |
978 | 985 | project_add_manifest() |
979 | 986 | |