]> code.delx.au - gnu-emacs/blobdiff - src/sysdep.c
Merge from origin/emacs-25
[gnu-emacs] / src / sysdep.c
index 418c50d5e78e907a70f4b00fb8d9de11b40c12bf..a01bf1d7c100d1066257cf458f1c2492b5ca5b6c 100644 (file)
@@ -1408,6 +1408,12 @@ setup_pty (int fd)
 void
 init_system_name (void)
 {
+  if (!build_details)
+    {
+      /* Set system-name to nil so that the build is deterministic.  */
+      Vsystem_name = Qnil;
+      return;
+    }
   char *hostname_alloc = NULL;
   char *hostname;
 #ifndef HAVE_GETHOSTNAME