diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-04-22 15:41:01 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-04-23 17:21:13 +0200 |
commit | 700ffab81bc483d60b8d166720fab89c021f96d3 (patch) | |
tree | 535bd9519eb6dc2ab38a989336c8eaddde5ec44b /crawl-ref/source/version.cc | |
parent | 278d22c112c9e70262adfea2bedfc81cb66123ec (diff) | |
download | crawl-ref-700ffab81bc483d60b8d166720fab89c021f96d3.tar.gz crawl-ref-700ffab81bc483d60b8d166720fab89c021f96d3.zip |
Include build and runtime architectures in version info.
The old info used kernel version and bitness of build machine, which are
irrelevant: most 32 bit systems today will run 64 bit kernels since
distributions tend to install these if the machine is capable of that.
We (very slightly) care about userland, not the kernel.
uname is worthless, too: in scratchbox, you might have an amd64 kernel,
i386 native userland, armel compiler, armhf target.
And if you want real fun, just wait for Debian multiarch. And all that
complexity is totally not needed, since the compiler knows everything that
is relevant already.
Diffstat (limited to 'crawl-ref/source/version.cc')
-rw-r--r-- | crawl-ref/source/version.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/version.cc b/crawl-ref/source/version.cc index c68820e692..ca129db032 100644 --- a/crawl-ref/source/version.cc +++ b/crawl-ref/source/version.cc @@ -45,6 +45,15 @@ namespace Version #endif } + std::string BuildArch() + { + return CRAWL_HOST; + } + std::string Arch() + { + return CRAWL_ARCH; + } + std::string CFLAGS() { return CRAWL_CFLAGS; @@ -62,6 +71,8 @@ std::string compilation_info() out += make_stringf("Compiled with %s on %s at %s\n", Version::Compiler().c_str(), __DATE__, __TIME__); + out += make_stringf("Build platform: %s\n", Version::BuildArch().c_str()); + out += make_stringf("Platform: %s\n", Version::Arch().c_str()); out += make_stringf("CLFAGS: %s\n", Version::CFLAGS().c_str()); out += make_stringf("LDFLAGS: %s\n", Version::LDFLAGS().c_str()); |