mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Core: Move generated VERSION_HASH
to a .cpp
file
This lets us have its definition in `core/version.h` and avoid rebuilding a handful of files every time the commit hash changes.
This commit is contained in:
parent
3cb9dc78d6
commit
90162851a7
13 changed files with 26 additions and 43 deletions
|
@ -33,7 +33,6 @@
|
|||
#include "core/config/project_settings.h"
|
||||
#include "core/os/os.h"
|
||||
#include "core/version.h"
|
||||
#include "core/version_hash.gen.h"
|
||||
#include "main/main.h"
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
|
@ -71,10 +70,10 @@ static void handle_crash(int sig) {
|
|||
}
|
||||
|
||||
// Print the engine version just before, so that people are reminded to include the version in backtrace reports.
|
||||
if (String(VERSION_HASH).length() != 0) {
|
||||
fprintf(stderr, "Engine version: " VERSION_FULL_NAME " (" VERSION_HASH ")\n");
|
||||
if (String(VERSION_HASH).is_empty()) {
|
||||
fprintf(stderr, "Engine version: %s\n", VERSION_FULL_NAME);
|
||||
} else {
|
||||
fprintf(stderr, "Engine version: " VERSION_FULL_NAME "\n");
|
||||
fprintf(stderr, "Engine version: %s (%s)\n", VERSION_FULL_NAME, VERSION_HASH);
|
||||
}
|
||||
fprintf(stderr, "Dumping the backtrace. %s\n", msg.utf8().get_data());
|
||||
char **strings = backtrace_symbols(bt_buffer, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue