commit 86bab904c1f54e9c5653b561c78ba3022660834e parent 8c5bb0306c12837d4338b3fb6771ff90bcfc8804 Author: Michael Savage <mikejsavage@gmail.com> Date: Tue Jul 4 21:57:24 +0300 Define RELEASE_BUILD in release mode Diffstat:
scripts/gen_makefile.lua | | | 6 | +++--- |
diff --git a/scripts/gen_makefile.lua b/scripts/gen_makefile.lua @@ -27,7 +27,7 @@ local configs = { ldflags = "/Od /MTd /Z7 /Zo", }, [ "windows-release" ] = { - cxxflags = "/O2 /MT", + cxxflags = "/O2 /MT /DRELEASE_BUILD", bin_prefix = "release/", }, @@ -55,7 +55,7 @@ local configs = { ldflags = "-fsanitize=address", }, [ "linux-release" ] = { - cxxflags = "-O2", + cxxflags = "-O2 -DRELEASE_BUILD", ldflags = "-s", bin_prefix = "release/", }, @@ -79,8 +79,8 @@ configs[ "openbsd-64" ] = copy( configs[ "linux-64" ] ) configs[ "openbsd-debug" ] = copy( configs[ "linux-debug" ] ) configs[ "openbsd-release" ] = { - ldflags = "-s", cxxflags = "-O2", + ldflags = "-s", } local function identify_host()