diff options
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r-- | crawl-ref/source/debug.cc | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc index 42abd42203..52c28e0dbc 100644 --- a/crawl-ref/source/debug.cc +++ b/crawl-ref/source/debug.cc @@ -6040,6 +6040,18 @@ static void _dump_levgen() mpr(""); } +static void _dump_compilation_info(FILE* file) +{ + std::string comp_info = compilation_info(); + if (!comp_info.empty()) + { + fprintf(file, "Compilation info:" EOL); + fprintf(file, "<<<<<<<<<<<" EOL); + fprintf(file, "%s", comp_info.c_str()); + fprintf(file, ">>>>>>>>>>>" EOL EOL); + } +} + static void _dump_level_info(FILE* file) { CrawlHashTable &props = env.properties; @@ -6506,8 +6518,23 @@ void do_crash_dump() fprintf(file, "Version: %s %s" EOL, CRAWL, Version::Long().c_str()); #if defined(UNIX) - fprintf(file, "Platform: unix" EOL); + fprintf(file, "Platform: unix"); +# if defined(TARGET_OS_MACOSX) + fprintf(file, " (OS X)"); +# endif + fprintf(file, EOL); +#elif defined(TARGET_OS_WINDOWS) + fprintf(file, "Platform: Windows" EOL); +#elif defined(TARGET_OS_DOS) + fprintf(file, "Platform: DOS" EOL); +#endif // UNIX + +#if TARGET_CPU_BITS == 64 + fprintf(file, "Bits: 64" EOL); +#else + fprintf(file, "Bits: 32" EOL); #endif + #ifdef USE_TILE fprintf(file, "Tiles: yes" EOL EOL); #else @@ -6522,6 +6549,9 @@ void do_crash_dump() fprintf(file, EOL); + // Next information on how the binary was compiled + _dump_compilation_info(file); + // Next information about the level the player is on, plus level // generation info if the crash happened during level generation. _dump_level_info(file); |