Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1537)

Unified Diff: runtime/tools/create_snapshot_bin.py

Issue 1304953004: Make build incremental (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/bin.gypi ('k') | tools/observatory_tool.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tools/create_snapshot_bin.py
diff --git a/runtime/tools/create_snapshot_bin.py b/runtime/tools/create_snapshot_bin.py
index 19c29434b77199e17e958bc3ae8b1263f6984d84..b91de38e86353a40e7e1ed131e3840161aeda87b 100755
--- a/runtime/tools/create_snapshot_bin.py
+++ b/runtime/tools/create_snapshot_bin.py
@@ -52,6 +52,10 @@ def BuildOptions():
result.add_option("--abi",
action="store", type="string",
help="Desired ABI for android target OS. armeabi-v7a or x86")
+ result.add_option("--timestamp_file",
+ action="store", type="string",
+ help="Path to timestamp file that will be written",
+ default="")
return result
@@ -71,6 +75,14 @@ def ProcessOptions(options):
return True
+def CreateTimestampFile(options):
+ if options.timestamp_file != '':
+ dir_name = os.path.dirname(options.timestamp_file)
+ if not os.path.exists(dir_name):
+ os.mkdir(dir_name)
+ open(options.timestamp_file, 'w').close()
+
+
def Main():
# Parse options.
parser = BuildOptions()
@@ -113,6 +125,9 @@ def Main():
except Exception as e:
return -1
+ # Success, update timestamp file.
+ CreateTimestampFile(options)
+
return 0
« no previous file with comments | « runtime/bin/bin.gypi ('k') | tools/observatory_tool.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698