Allow overriding build timestamp from env

pull/8479/head
kert 2018-10-10 01:28:19 -07:00 committed by adbridge
parent 8108da4924
commit d8771a57a3
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ from __future__ import print_function, division, absolute_import
import re
import sys
import json
from os import stat, walk, getcwd, sep, remove
from os import stat, walk, getcwd, sep, remove, getenv
from copy import copy
from time import time, sleep
from shutil import copyfile
@ -126,7 +126,7 @@ class mbedToolchain:
# Build output dir
self.build_dir = abspath(build_dir) if PRINT_COMPILER_OUTPUT_AS_LINK else build_dir
self.timestamp = time()
self.timestamp = getenv("MBED_BUILD_TIMESTAMP",time())
# Number of concurrent build jobs. 0 means auto (based on host system cores)
self.jobs = 0