Index: runtime/vm/vm.gypi |
diff --git a/runtime/vm/vm.gypi b/runtime/vm/vm.gypi |
index 7104aa5bf240d62c98c8f0497718f91aa5a4b947..3963727d721aedb98756609b793097d101424aa7 100644 |
--- a/runtime/vm/vm.gypi |
+++ b/runtime/vm/vm.gypi |
@@ -57,7 +57,19 @@ |
'sources/' : [ |
['exclude', 'gdbjit.cc'], |
], |
- }]], |
+ }], |
+ ['OS=="linux" and dart_vtune_support == 1', { |
+ # Link in libjitprofiling.a. |
+ 'cflags': [ |
+ '-DDART_VTUNE_SUPPORT', |
+ '-I<(dart_vtune_root)/include', |
+ ], |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-ljitprofiling', |
+ ], |
+ }, |
+ }]], |
}, |
{ |
'target_name': 'libdart_lib_withcore', |