Skip to content

Commit 77f9fb9

Browse files
committed
Allow overriding build timestamp from env
1 parent 06dffda commit 77f9fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/toolchains/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import re
2020
import sys
2121
import json
22-
from os import stat, walk, getcwd, sep, remove
22+
from os import stat, walk, getcwd, sep, remove, getenv
2323
from copy import copy
2424
from time import time, sleep
2525
from shutil import copyfile
@@ -126,7 +126,7 @@ def __init__(self, target, notify=None, macros=None, build_profile=None,
126126

127127
# Build output dir
128128
self.build_dir = abspath(build_dir) if PRINT_COMPILER_OUTPUT_AS_LINK else build_dir
129-
self.timestamp = time()
129+
self.timestamp = getenv("MBED_BUILD_TIMESTAMP",time())
130130

131131
# Number of concurrent build jobs. 0 means auto (based on host system cores)
132132
self.jobs = 0

0 commit comments

Comments
 (0)