Support SOURCE_DATE_EPOCH for reproducible builds

See https://reproducible-builds.org/docs/source-date-epoch/

Fixes #286
This commit is contained in:
Rangi
2020-12-16 11:08:18 -05:00
committed by Eldred Habert
parent 063a22ddf9
commit ad6f17cd93
4 changed files with 21 additions and 6 deletions

View File

@@ -12,6 +12,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include "asm/section.h"
@@ -140,7 +141,7 @@ struct Symbol *sym_AddMacro(char const *symName, int32_t defLineNo, char *body,
struct Symbol *sym_Ref(char const *symName);
struct Symbol *sym_AddString(char const *symName, char const *value);
void sym_Purge(char const *symName);
void sym_Init(void);
void sym_Init(time_t now);
/* Functions to save and restore the current symbol scope. */
char const *sym_GetCurrentSymbolScope(void);