Add cflags/ldflags, SDL version to engine.log

This commit is contained in:
nillerusr
2022-11-16 13:58:09 +03:00
parent dde72b675b
commit 80c9ef37d7
5 changed files with 19 additions and 8 deletions
+6
View File
@@ -114,6 +114,12 @@ void CDbgLogger::Init(const char *logfile)
#else
fprintf(file, ">>> Engine(arch:%s) started at %s\n", GetProcessorArchName(), szTime);
#endif
#ifdef GNUC
fprintf(file, "Compiler version: %s\n", __VERSION__);
#endif
fprintf(file, "Compiler CFLAGS: %s\n", WAF_CFLAGS);
fprintf(file, "Compiler LDFLAGS: %s\n", WAF_LDFLAGS);
fflush(file);
for( int i = 0; i < iMsg; i++ )
+2
View File
@@ -12,6 +12,8 @@ def options(opt):
return
def configure(conf):
conf.define('WAF_CFLAGS', conf.env.CFLAGS)
conf.define('WAF_LDFLAGS', conf.env.LINKFLAGS)
conf.define('TIER0_DLL_EXPORT',1)
# conf.define('NO_HOOK_MALLOC',1)