Small tweaks to make builds more deterministic.

This commit is contained in:
Shpoike 2021-06-29 12:17:17 +01:00
parent f675ce9b95
commit 3fae242613
3 changed files with 6 additions and 0 deletions

View file

@ -51,6 +51,7 @@ STRIP = strip
CPUFLAGS=
LDFLAGS = -m32 -mwindows -Wl,--large-address-aware
LDFLAGS += $(QSS_LDFLAGS)
LDFLAGS += -Wl,--no-insert-timestamp #prevent non-determinism in the exe header. mustn't be used for dlls.
DFLAGS ?=
CFLAGS ?= -m32 -Wall -Wno-trigraphs
CFLAGS += $(CPUFLAGS)

View file

@ -49,6 +49,7 @@ STRIP = strip
CPUFLAGS=
LDFLAGS = -m64 -mwindows
LDFLAGS += $(QSS_LDFLAGS)
LDFLAGS += -Wl,--no-insert-timestamp #prevent non-determinism in the exe header. mustn't be used for dlls.
DFLAGS ?=
CFLAGS ?= -m64 -Wall -Wno-trigraphs
CFLAGS += $(CPUFLAGS)

View file

@ -1049,7 +1049,11 @@ void Host_Init (void)
NET_Init ();
SV_Init ();
#ifdef QSS_DATE //avoid non-determinism.
Con_Printf ("Exe: " ENGINE_NAME_AND_VER "\n");
#else
Con_Printf ("Exe: " __TIME__ " " __DATE__ "\n");
#endif
Con_Printf ("%4.1f megabyte heap\n", host_parms->memsize/ (1024*1024.0));
if (cls.state != ca_dedicated)