Mercurial > hg > graal-jvmci-8
comparison mx.jvmci/mx_jvmci.py @ 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 | b876144b52f3 |
children | e5f1d4e023f3 |
comparison
equal
deleted
inserted
replaced
22412:e6e0113295ca | 22413:454a38908a59 |
---|---|
907 for root, dirnames, files in os.walk(join(_suite.dir, d)): | 907 for root, dirnames, files in os.walk(join(_suite.dir, d)): |
908 # ignore <graal>/src/share/tools | 908 # ignore <graal>/src/share/tools |
909 if root == join(_suite.dir, 'src', 'share'): | 909 if root == join(_suite.dir, 'src', 'share'): |
910 dirnames.remove('tools') | 910 dirnames.remove('tools') |
911 for f in (join(root, name) for name in files): | 911 for f in (join(root, name) for name in files): |
912 if len(f) != 0 and os.path.getmtime(f) > newestOutput: | 912 ts = mx.TimeStampFile(f) |
913 return (True, 'out of date (witness: {})'.format(f)) | 913 if newestOutput: |
914 if not newestOutput.exists(): | |
915 return (True, '{} does not exist'.format(newestOutput)) | |
916 if ts.isNewerThan(newestOutput): | |
917 return (True, '{} is newer than {}'.format(ts, newestOutput)) | |
914 return (False, None) | 918 return (False, None) |
915 | 919 |
916 def buildForbidden(self): | 920 def buildForbidden(self): |
917 if mx.NativeBuildTask.buildForbidden(self): | 921 if mx.NativeBuildTask.buildForbidden(self): |
918 return True | 922 return True |