mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
Be aware of DIFFABLE -> use a static timestamp for DAutoTest
This commit is contained in:
parent
559421c5f3
commit
efd1bec0c8
2 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,9 @@ include ../src/osmodel.mak
|
|||
BUILD=release
|
||||
G_BIN=$(GENERATED)/$(OS)/$(BUILD)/$(MODEL)
|
||||
|
||||
# Removes inclusion of all dynamic content and timestamps
|
||||
export DIFFABLE
|
||||
|
||||
################################################################################
|
||||
# Main targets
|
||||
################################################################################
|
||||
|
|
|
@ -79,9 +79,14 @@ string bold(string w)
|
|||
void main()
|
||||
{
|
||||
import std.algorithm, std.array, std.conv, std.datetime, std.range, std.stdio, std.uni;
|
||||
import std.process : environment;
|
||||
import dmd.cli;
|
||||
|
||||
auto now = Clock.currTime;
|
||||
auto diffable = environment.get("DIFFABLE", "0");
|
||||
if (diffable == "1")
|
||||
now = SysTime(DateTime(2018, 01, 01));
|
||||
|
||||
writefln(header, now.toISOExtString.take(10));
|
||||
|
||||
foreach (option; Usage.options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue