Remove uses of time(NULL) for build determism.
Removes cases suggested on the bug.
BUG=766721
TEST=none
Change-Id: I88c11d052aef8a9c4e48b3b976ad432f3b008dd6
diff --git a/asm/nasm.c b/asm/nasm.c
index c935cc4..ad05e44 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -381,6 +381,10 @@
static void timestamp(void)
{
struct compile_time * const oct = &official_compile_time;
+#if 1
+ // Chromium patch: Builds should be deterministic and not embed timestamps.
+ memset(oct, 0, sizeof(official_compile_time));
+#else
const struct tm *tp, *best_gm;
time(&oct->t);
@@ -409,6 +413,7 @@
oct->posix = make_posix_time(best_gm);
oct->have_posix = true;
}
+#endif
}
int main(int argc, char **argv)