@@ -273,19 +273,16 @@ func (b *Builder) preprocess() error {
273
273
return err
274
274
}
275
275
b .Progress .CompleteStep ()
276
- b .Progress .PushProgress ()
277
276
278
277
if err := b .RunRecipe ("recipe.hooks.prebuild" , ".pattern" , false ); err != nil {
279
278
return err
280
279
}
281
280
b .Progress .CompleteStep ()
282
- b .Progress .PushProgress ()
283
281
284
282
if err := b .prepareSketchBuildPath (); err != nil {
285
283
return err
286
284
}
287
285
b .Progress .CompleteStep ()
288
- b .Progress .PushProgress ()
289
286
290
287
b .logIfVerbose (false , tr ("Detecting libraries used..." ))
291
288
err := b .libsDetector .FindIncludes (
@@ -302,18 +299,15 @@ func (b *Builder) preprocess() error {
302
299
return err
303
300
}
304
301
b .Progress .CompleteStep ()
305
- b .Progress .PushProgress ()
306
302
307
303
b .warnAboutArchIncompatibleLibraries (b .libsDetector .ImportedLibraries ())
308
304
b .Progress .CompleteStep ()
309
- b .Progress .PushProgress ()
310
305
311
306
b .logIfVerbose (false , tr ("Generating function prototypes..." ))
312
307
if err := b .preprocessSketch (b .libsDetector .IncludeFolders ()); err != nil {
313
308
return err
314
309
}
315
310
b .Progress .CompleteStep ()
316
- b .Progress .PushProgress ()
317
311
318
312
return nil
319
313
}
@@ -342,11 +336,9 @@ func (b *Builder) Build() error {
342
336
343
337
b .libsDetector .PrintUsedAndNotUsedLibraries (buildErr != nil )
344
338
b .Progress .CompleteStep ()
345
- b .Progress .PushProgress ()
346
339
347
340
b .printUsedLibraries (b .libsDetector .ImportedLibraries ())
348
341
b .Progress .CompleteStep ()
349
- b .Progress .PushProgress ()
350
342
351
343
if buildErr != nil {
352
344
return buildErr
@@ -355,13 +347,11 @@ func (b *Builder) Build() error {
355
347
return err
356
348
}
357
349
b .Progress .CompleteStep ()
358
- b .Progress .PushProgress ()
359
350
360
351
if err := b .size (); err != nil {
361
352
return err
362
353
}
363
354
b .Progress .CompleteStep ()
364
- b .Progress .PushProgress ()
365
355
366
356
return nil
367
357
}
@@ -373,112 +363,94 @@ func (b *Builder) build() error {
373
363
return err
374
364
}
375
365
b .Progress .CompleteStep ()
376
- b .Progress .PushProgress ()
377
366
378
367
if err := b .buildSketch (b .libsDetector .IncludeFolders ()); err != nil {
379
368
return err
380
369
}
381
370
b .Progress .CompleteStep ()
382
- b .Progress .PushProgress ()
383
371
384
372
if err := b .RunRecipe ("recipe.hooks.sketch.postbuild" , ".pattern" , true ); err != nil {
385
373
return err
386
374
}
387
375
b .Progress .CompleteStep ()
388
- b .Progress .PushProgress ()
389
376
390
377
b .logIfVerbose (false , tr ("Compiling libraries..." ))
391
378
if err := b .RunRecipe ("recipe.hooks.libraries.prebuild" , ".pattern" , false ); err != nil {
392
379
return err
393
380
}
394
381
b .Progress .CompleteStep ()
395
- b .Progress .PushProgress ()
396
382
397
383
if err := b .removeUnusedCompiledLibraries (b .libsDetector .ImportedLibraries ()); err != nil {
398
384
return err
399
385
}
400
386
b .Progress .CompleteStep ()
401
- b .Progress .PushProgress ()
402
387
403
388
if err := b .buildLibraries (b .libsDetector .IncludeFolders (), b .libsDetector .ImportedLibraries ()); err != nil {
404
389
return err
405
390
}
406
391
b .Progress .CompleteStep ()
407
- b .Progress .PushProgress ()
408
392
409
393
if err := b .RunRecipe ("recipe.hooks.libraries.postbuild" , ".pattern" , true ); err != nil {
410
394
return err
411
395
}
412
396
b .Progress .CompleteStep ()
413
- b .Progress .PushProgress ()
414
397
415
398
b .logIfVerbose (false , tr ("Compiling core..." ))
416
399
if err := b .RunRecipe ("recipe.hooks.core.prebuild" , ".pattern" , false ); err != nil {
417
400
return err
418
401
}
419
402
b .Progress .CompleteStep ()
420
- b .Progress .PushProgress ()
421
403
422
404
if err := b .buildCore (); err != nil {
423
405
return err
424
406
}
425
407
b .Progress .CompleteStep ()
426
- b .Progress .PushProgress ()
427
408
428
409
if err := b .RunRecipe ("recipe.hooks.core.postbuild" , ".pattern" , true ); err != nil {
429
410
return err
430
411
}
431
412
b .Progress .CompleteStep ()
432
- b .Progress .PushProgress ()
433
413
434
414
b .logIfVerbose (false , tr ("Linking everything together..." ))
435
415
if err := b .RunRecipe ("recipe.hooks.linking.prelink" , ".pattern" , false ); err != nil {
436
416
return err
437
417
}
438
418
b .Progress .CompleteStep ()
439
- b .Progress .PushProgress ()
440
419
441
420
if err := b .link (); err != nil {
442
421
return err
443
422
}
444
423
b .Progress .CompleteStep ()
445
- b .Progress .PushProgress ()
446
424
447
425
if err := b .RunRecipe ("recipe.hooks.linking.postlink" , ".pattern" , true ); err != nil {
448
426
return err
449
427
}
450
428
b .Progress .CompleteStep ()
451
- b .Progress .PushProgress ()
452
429
453
430
if err := b .RunRecipe ("recipe.hooks.objcopy.preobjcopy" , ".pattern" , false ); err != nil {
454
431
return err
455
432
}
456
433
b .Progress .CompleteStep ()
457
- b .Progress .PushProgress ()
458
434
459
435
if err := b .RunRecipe ("recipe.objcopy." , ".pattern" , true ); err != nil {
460
436
return err
461
437
}
462
438
b .Progress .CompleteStep ()
463
- b .Progress .PushProgress ()
464
439
465
440
if err := b .RunRecipe ("recipe.hooks.objcopy.postobjcopy" , ".pattern" , true ); err != nil {
466
441
return err
467
442
}
468
443
b .Progress .CompleteStep ()
469
- b .Progress .PushProgress ()
470
444
471
445
if err := b .mergeSketchWithBootloader (); err != nil {
472
446
return err
473
447
}
474
448
b .Progress .CompleteStep ()
475
- b .Progress .PushProgress ()
476
449
477
450
if err := b .RunRecipe ("recipe.hooks.postbuild" , ".pattern" , true ); err != nil {
478
451
return err
479
452
}
480
453
b .Progress .CompleteStep ()
481
- b .Progress .PushProgress ()
482
454
483
455
if b .compilationDatabase != nil {
484
456
b .compilationDatabase .SaveToFile ()
0 commit comments