From 5fbee47c2b1e4d93b97a28e57ff3dbfb10a88f0a Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sun, 11 Aug 2024 17:03:21 +0200 Subject: [PATCH] Update version information, --- src/build/build_options.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/build/build_options.c b/src/build/build_options.c index 669862404..2e34ebc2d 100644 --- a/src/build/build_options.c +++ b/src/build/build_options.c @@ -455,7 +455,13 @@ static void print_all_targets(void) static void print_version(void) { - PRINTF("C3 Compiler Version: %s%s", COMPILER_VERSION, PRERELEASE ? " (prerelease)" : ""); + static const char *BUILD_DATE = __DATE__; + static const char *BUILD_TIME = __TIME__; +#if PRERELEASE + PRINTF("C3 Compiler Version: %s (Pre-release, %s %s)", COMPILER_VERSION, BUILD_DATE, BUILD_TIME); +#else + PRINTF("C3 Compiler Version: %s", COMPILER_VERSION); +#endif PRINTF("Installed directory: %s", find_executable_path()); PRINTF("LLVM version: %s", llvm_version); PRINTF("LLVM default target: %s", llvm_target);