summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-03 15:39:22 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-03 15:39:22 +0200
commit5d5e0f62e8b677e122cbdceef8badcbaae7c0235 (patch)
tree499f2b9d749dc151a1f78b0f1e6433046d358636 /premake5.lua
parentMerge branch 'miami' into lcs (diff)
parentFix overflow in audio code (diff)
downloadre3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar
re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar.gz
re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar.bz2
re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar.lz
re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar.xz
re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar.zst
re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.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 6667255c..0da1b8a4 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
@@ -121,7 +126,7 @@ workspace "reLCS"
filter "configurations:not Debug"
defines { "NDEBUG" }
optimize "Speed"
- if(_OPTIONS["lto"]) then
+ if(_OPTIONS["with-lto"]) then
flags { "LinkTimeOptimization" }
end
@@ -338,6 +343,10 @@ project "reLCS"
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"