VM: Split GYP build target 'runtime' to speedup SDK build times.

This speeds up a regular full 'runtime' build on my Linux box by around 40%
by avoiding to build the precompiled runtime by default (measured user-time)
'runtime_precompiled' also builds 35% faster than 'runtime' before.

BUG=
R=iposva@google.com, rmacnak@google.com

Review URL: https://codereview.chromium.org/1904553004 .
This commit is contained in:
Florian Schneider 2016-04-21 11:40:19 +02:00
parent 7f4e76a404
commit 9ff22315d8
2 changed files with 28 additions and 3 deletions

View file

@ -26,9 +26,36 @@
'type': 'none',
'dependencies': [
'runtime/dart-runtime.gyp:dart',
'runtime/dart-runtime.gyp:dart_noopt',
'runtime/dart-runtime.gyp:dart_bootstrap#host',
'runtime/dart-runtime.gyp:run_vm_tests',
'runtime/dart-runtime.gyp:process_test',
'packages',
'runtime/dart-runtime.gyp:test_extension',
'runtime/dart-runtime.gyp:sample_extension',
],
},
{
# This is the target that is built on the VM build bots. It
# must depend on anything that is required by the VM test
# suites.
'target_name': 'runtime_precompiled',
'type': 'none',
'dependencies': [
'runtime/dart-runtime.gyp:dart_precompiled_runtime',
'runtime/dart-runtime.gyp:dart_bootstrap#host',
'packages',
],
},
{
# This is the target that is built on the VM build bots. It
# must depend on anything that is required by the VM test
# suites.
'target_name': 'runtime_and_noopt',
'type': 'none',
'dependencies': [
'runtime/dart-runtime.gyp:dart',
'runtime/dart-runtime.gyp:dart_noopt',
'runtime/dart-runtime.gyp:dart_bootstrap#host',
'runtime/dart-runtime.gyp:run_vm_tests',
'runtime/dart-runtime.gyp:process_test',
'packages',

View file

@ -17,8 +17,6 @@
'libdart_deps': ['libdart_lib_nosnapshot', 'libdart_lib',
'libdart_vm_nosnapshot', 'libdart_vm',
'libdart_vm_noopt',
'libdart_vm_precompiled_runtime',
'libdouble_conversion',],
},
'targets': [