Commit 2c9fd9cd authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

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

parent 30553f8a
Pipeline #3083 passed with stage
in 15 minutes and 3 seconds
...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment