Mercurial > hg > graal-jvmci-8
changeset 22413:454a38908a59
newestInput parameter to HotSpotBuildTask.needsBuild() is a TimeStampFile as of mx 5.3.3
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 10 Aug 2015 14:59:44 +0200 |
parents | e6e0113295ca |
children | c1c05278cdf8 |
files | mx.jvmci/mx_jvmci.py mx.jvmci/suite.py |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mx.jvmci/mx_jvmci.py Mon Aug 10 12:00:08 2015 +0200 +++ b/mx.jvmci/mx_jvmci.py Mon Aug 10 14:59:44 2015 +0200 @@ -909,8 +909,12 @@ if root == join(_suite.dir, 'src', 'share'): dirnames.remove('tools') for f in (join(root, name) for name in files): - if len(f) != 0 and os.path.getmtime(f) > newestOutput: - return (True, 'out of date (witness: {})'.format(f)) + ts = mx.TimeStampFile(f) + if newestOutput: + if not newestOutput.exists(): + return (True, '{} does not exist'.format(newestOutput)) + if ts.isNewerThan(newestOutput): + return (True, '{} is newer than {}'.format(ts, newestOutput)) return (False, None) def buildForbidden(self):