summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-03 01:59:02 +0200
committerwithmorten <morten.with@gmail.com>2021-07-03 02:40:25 +0200
commitbe6e273930345cc693699a34ec6a5b33154fe70e (patch)
tree996d51fab25599f5463509bdbb6c571bc77288e0 /premake5.lua
parentdisable PED_SKIN and PEDS_REPORT_CRIMES_ON_PHONE when COMPATIBLE_SAVES is disabled (diff)
downloadre3-be6e273930345cc693699a34ec6a5b33154fe70e.tar
re3-be6e273930345cc693699a34ec6a5b33154fe70e.tar.gz
re3-be6e273930345cc693699a34ec6a5b33154fe70e.tar.bz2
re3-be6e273930345cc693699a34ec6a5b33154fe70e.tar.lz
re3-be6e273930345cc693699a34ec6a5b33154fe70e.tar.xz
re3-be6e273930345cc693699a34ec6a5b33154fe70e.tar.zst
re3-be6e273930345cc693699a34ec6a5b33154fe70e.zip
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua15
1 files changed, 12 insertions, 3 deletions
diff --git a/premake5.lua b/premake5.lua
index 7fc21907..cce2c7ac 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -28,13 +28,18 @@ newoption {
}
newoption {
+ trigger = "with-lto",
+ description = "Build with link time optimization"
+}
+
+newoption {
trigger = "no-git-hash",
description = "Don't print git commit hash into binary"
}
newoption {
- trigger = "lto",
- description = "Use link time optimization"
+ trigger = "no-full-paths",
+ description = "Don't print full paths into binary"
}
if(_OPTIONS["with-librw"]) then
@@ -114,7 +119,7 @@ workspace "re3"
filter "configurations:not Debug"
defines { "NDEBUG" }
optimize "Speed"
- if(_OPTIONS["lto"]) then
+ if(_OPTIONS["with-lto"]) then
flags { "LinkTimeOptimization" }
end
@@ -327,6 +332,10 @@ project "re3"
linkoptions "/SAFESEH:NO"
characterset ("MBCS")
targetextension ".exe"
+ if(_OPTIONS["no-full-paths"]) then
+ usefullpaths "off"
+ linkoptions "/PDBALTPATH:%_PDB%"
+ end
if(_OPTIONS["with-librw"]) then
-- external librw is dynamic
staticruntime "on"