Skip to content
Snippets Groups Projects
Commit 2c9fd9cd authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Print build details (date, time, compiler version) with -V output.

parent 30553f8a
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3083 passed
...@@ -1174,8 +1174,12 @@ int main(int argc, char** argv) ...@@ -1174,8 +1174,12 @@ int main(int argc, char** argv)
sbbsexec_mode = strtoul(arg + 1, NULL, 0); sbbsexec_mode = strtoul(arg + 1, NULL, 0);
break; break;
case 'V': case 'V':
fprintf(stdout, "%s/%s\n", GIT_BRANCH, GIT_HASH); {
char compiler[128];
DESCRIBE_COMPILER(compiler);
fprintf(stdout, "%s/%s built %s %s using %s\n", GIT_BRANCH, GIT_HASH, __DATE__, __TIME__, compiler);
return EXIT_SUCCESS; return EXIT_SUCCESS;
}
default: default:
usage(argv[0]); usage(argv[0]);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment