diff --git a/runtime/BUILD.gn b/runtime/BUILD.gn index 9db127b03c7..81af36d1732 100644 --- a/runtime/BUILD.gn +++ b/runtime/BUILD.gn @@ -375,6 +375,26 @@ action("generate_version_cc_file") { "../tools/VERSION", "vm/version_in.cc", ] + + # This list must be kept in sync with the VM_SNAPSHOT_FILES in + # tools/make_version.py. + inputs += [ + "vm/app_snapshot.cc", + "vm/app_snapshot.h", + "vm/dart.cc", + "vm/dart_api_impl.cc", + "vm/datastream.h", + "vm/image_snapshot.cc", + "vm/image_snapshot.h", + "vm/object.cc", + "vm/object.h", + "vm/raw_object.cc", + "vm/raw_object.h", + "vm/snapshot.cc", + "vm/snapshot.h", + "vm/symbols.cc", + "vm/symbols.h", + ] if (dart_version_git_info) { inputs += [ "$default_git_folder/logs/HEAD" ] } diff --git a/tools/make_version.py b/tools/make_version.py index 768870f8eff..1e7abc8d72f 100755 --- a/tools/make_version.py +++ b/tools/make_version.py @@ -15,24 +15,24 @@ import utils # When these files change, snapshots created by the VM are potentially no longer # backwards-compatible. +# This list must be kept in sync with the inputs to generate_version_cc_file in +# runtime/BUILD.gn. VM_SNAPSHOT_FILES = [ - # Header files. - 'app_snapshot.h', - 'datastream.h', - 'image_snapshot.h', - 'object.h', - 'raw_object.h', - 'snapshot.h', - 'symbols.h', - # Source files. 'app_snapshot.cc', + 'app_snapshot.h', 'dart.cc', 'dart_api_impl.cc', + 'datastream.h', 'image_snapshot.cc', + 'image_snapshot.h', 'object.cc', + 'object.h', 'raw_object.cc', + 'raw_object.h', 'snapshot.cc', + 'snapshot.h', 'symbols.cc', + 'symbols.h', ]