File tree 2 files changed +21
-9
lines changed
2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,30 @@ group("all") {
15
15
16
16
group (" aot" ) {
17
17
deps = [
18
- " :run_futures_aot" ,
19
18
" :run_main_aot" ,
20
19
" :run_timer_aot" ,
21
20
" :run_timer_async_aot" ,
22
21
" :run_two_programs_aot" ,
23
22
]
23
+
24
+ # FFI can't execute on the VM's simulator
25
+ if (dart_target_arch == host_cpu ) {
26
+ deps += [ " :run_futures_aot" ]
27
+ }
24
28
}
25
29
26
30
group (" kernel" ) {
27
31
deps = [
28
- " :run_futures_kernel" ,
29
32
" :run_main_kernel" ,
30
33
" :run_timer_async_kernel" ,
31
34
" :run_timer_kernel" ,
32
35
" :run_two_programs_kernel" ,
33
36
]
37
+
38
+ # FFI can't execute on the VM's simulator
39
+ if (dart_target_arch == host_cpu ) {
40
+ deps += [ " :run_futures_kernel" ]
41
+ }
34
42
}
35
43
36
44
# Generates a pair of executables for kernel and AOT snapshots.
@@ -153,11 +161,14 @@ snapshots("timer") {
153
161
main_dart = " timer.dart"
154
162
}
155
163
156
- snapshots (" futures" ) {
157
- main_dart = " futures.dart"
158
- }
164
+ # FFI can't execute on the VM's simulator
165
+ if (dart_target_arch == host_cpu ) {
166
+ snapshots (" futures" ) {
167
+ main_dart = " futures.dart"
168
+ }
159
169
160
- sample (" run_futures" ) {
161
- sources = [ " run_futures.cc" ]
162
- snapshots = [ " :futures" ]
170
+ sample (" run_futures" ) {
171
+ sources = [ " run_futures.cc" ]
172
+ snapshots = [ " :futures" ]
173
+ }
163
174
}
Original file line number Diff line number Diff line change @@ -44,9 +44,10 @@ void main() {
44
44
checkSample ('$out /run_timer_async_kernel' , [
45
45
'$out /gen/timer_kernel.dart.snapshot' ,
46
46
]);
47
+ // FFI samples aren't built on some platforms.
47
48
checkSample ('$out /run_futures_kernel' , [
48
49
'$out /gen/futures_kernel.dart.snapshot' ,
49
- ]);
50
+ ], skipIfNotBuilt : true );
50
51
51
52
// AOT Samples aren't built on some platforms.
52
53
checkSample ('$out /run_main_aot' , [
You can’t perform that action at this time.
0 commit comments