aboutsummaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-03 03:00:02 +0200
committerwithmorten <morten.with@gmail.com>2021-07-03 03:03:25 +0200
commita92dcaa0b115e61b18aae5a8f368a5d92614db21 (patch)
tree990aaaf66aa66a8da8371460bd8c28c5c353733f /premake5.lua
parent1c0878f65b8a554bdea9183fdc4b76645e530ccb (diff)
premake: add no-full-paths option for CI builds, rename lto to with-lto
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 da41eb1c..af41a5a3 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 "reVC"
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 "reVC"
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"