]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/master.hpp
vm/master.hpp: optional reproducible VM compilation
[factor.git] / vm / master.hpp
index 4c87f74b97e3845a224a49a1734967ce255e8070..7fd7b18a4690799c82d44363287144d5800b5df1 100644 (file)
 #define FACTOR_COMPILER_VERSION "unknown"
 #endif
 
-// Record compilation time
-#define FACTOR_COMPILE_TIME __DATE__ " " __TIME__
+#if (FACTOR_REPRODUCIBLE == 1)
+  #pragma message "REPRODUCIBLE"
+  #define FACTOR_COMPILE_TIME "[reproducible]"
+#else
+  // Record compilation time
+  #define FACTOR_COMPILE_TIME  __DATE__ " " __TIME__
+#endif
 
 // Detect target CPU type
 #if defined(__arm__)