mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Update version information,
This commit is contained in:
@@ -455,7 +455,13 @@ static void print_all_targets(void)
|
|||||||
|
|
||||||
static void print_version(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("Installed directory: %s", find_executable_path());
|
||||||
PRINTF("LLVM version: %s", llvm_version);
|
PRINTF("LLVM version: %s", llvm_version);
|
||||||
PRINTF("LLVM default target: %s", llvm_target);
|
PRINTF("LLVM default target: %s", llvm_target);
|
||||||
|
|||||||
Reference in New Issue
Block a user