Skip to content

Commit e1c9673

Browse files
authored
Fix targets in build_fuchsia_artifacts (flutter#19794)
1 parent f620eac commit e1c9673

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

tools/fuchsia/build_fuchsia_artifacts.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,7 @@ def GetRunnerTarget(runner_type, product, aot):
221221
target += 'runner'
222222
return base + target
223223

224-
225-
def GetTargetsToBuild(product=False, additional_targets=[]):
226-
targets_to_build = [
227-
'flutter/shell/platform/fuchsia:fuchsia',
228-
] + additional_targets
229-
return targets_to_build
230-
231-
232-
def BuildTarget(runtime_mode, arch, product, enable_lto, additional_targets=[]):
224+
def BuildTarget(runtime_mode, arch, enable_lto, additional_targets=[]):
233225
out_dir = 'fuchsia_%s_%s' % (runtime_mode, arch)
234226
flags = [
235227
'--fuchsia',
@@ -243,7 +235,7 @@ def BuildTarget(runtime_mode, arch, product, enable_lto, additional_targets=[]):
243235
flags.append('--no-lto')
244236

245237
RunGN(out_dir, flags)
246-
BuildNinjaTargets(out_dir, GetTargetsToBuild(product))
238+
BuildNinjaTargets(out_dir, [ 'flutter' ] + additional_targets)
247239

248240
return
249241

@@ -305,8 +297,7 @@ def main():
305297
product = product_modes[i]
306298
if build_mode == 'all' or runtime_mode == build_mode:
307299
if not args.skip_build:
308-
BuildTarget(runtime_mode, arch, product, enable_lto,
309-
args.targets.split(","))
300+
BuildTarget(runtime_mode, arch, enable_lto, args.targets.split(","))
310301
BuildBucket(runtime_mode, arch, product)
311302

312303
if args.upload:

0 commit comments

Comments
 (0)