diff options
author | Rickard Green <[email protected]> | 2015-09-09 18:17:12 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2015-09-09 18:17:12 +0200 |
commit | 79da6e851e98729d103979ba466d47f4fa4421b2 (patch) | |
tree | 784997a4dd25c42715151ede2c4e55257badd9ca /erts/emulator/utils/mkver.c | |
parent | 4cfc35b1ef3667885b8de9df53b8ab8429117865 (diff) | |
parent | e4dedc6cffb5025161d9a6295523b215e5a165c7 (diff) | |
download | otp-79da6e851e98729d103979ba466d47f4fa4421b2.tar.gz otp-79da6e851e98729d103979ba466d47f4fa4421b2.tar.bz2 otp-79da6e851e98729d103979ba466d47f4fa4421b2.zip |
Merge branch 'rickard/disable-saved-compile-time/OTP-12971' into maint
* rickard/disable-saved-compile-time/OTP-12971:
Add configure switch --disable-saved-compile-time
Conflicts:
HOWTO/INSTALL.md
Diffstat (limited to 'erts/emulator/utils/mkver.c')
-rw-r--r-- | erts/emulator/utils/mkver.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/emulator/utils/mkver.c b/erts/emulator/utils/mkver.c index 96cd315a95..6641873712 100644 --- a/erts/emulator/utils/mkver.c +++ b/erts/emulator/utils/mkver.c @@ -35,8 +35,10 @@ int argc; char** argv; { FILE *file; +#if ERTS_SAVED_COMPILE_TIME time_t now; - char *cnow; +#endif + char *cnow = ""; if (argc != 2) { fprintf(stderr, "usage: mkver version\n"); @@ -48,9 +50,11 @@ char** argv; exit(1); } +#if ERTS_SAVED_COMPILE_TIME time(&now); cnow = ctime(&now); cnow[24] = '\0'; /* tidelipom */ +#endif fprintf(file, "/* This file was created by mkver -- don't modify.*/\n"); fprintf(file, "#define ERLANG_VERSION \"%s\"\n", argv[1]); fprintf(file, "#define ERLANG_COMPILE_DATE \"%s\"\n", cnow); |