tinygo/builder
Ayke van Laethem f866d5cc38 builder: refactor Build function to not use a callback
The only reason a callback was used, was so that the temporary directory
gets removed once `Build` returns. But that is honestly a really bad
reason: the parent function can simply create a temporary function and
remove it when it returns. It wasn't worth the code complexity that this
callback created.

This change should not cause any observable differences in behavior (it
should be a non-functional change).

I have no reason to do this now, but this unclean code has been bugging
me and I just wanted to get it fixed.
2022-10-16 10:48:34 +02:00
..
ar.go all: format code according to Go 1.19 rules 2022-08-04 12:18:32 +02:00
build.go builder: refactor Build function to not use a callback 2022-10-16 10:48:34 +02:00
builder_test.go all: update _test.go files for ioutil changes 2022-08-07 10:32:23 +02:00
buildid.go Fix for builds of tinygo using an Android host 2022-08-09 11:14:39 +02:00
builtins.go avr: use compiler-rt 2022-05-18 15:20:09 +02:00
cc.go all: move from os.IsFoo to errors.Is(err, ErrFoo) 2022-08-07 10:32:23 +02:00
cc1as.cpp all: update to LLVM 14 2022-04-23 08:45:46 +02:00
cc1as.h all: switch to LLVM 13 2022-01-09 11:04:10 +01:00
cc_test.go builder: cache C and assembly file outputs 2021-04-05 20:52:04 +02:00
clang.cpp all: switch to LLVM 11 for static builds 2020-12-10 07:01:32 +01:00
commands.go builder: remove extra formatting verb from error message 2022-05-18 09:06:03 +02:00
config.go all: drop support for Go 1.16 and Go 1.17 2022-08-30 12:38:06 +02:00
darwin-libsystem.go all: remove support for LLVM 11 and LLVM 12 2022-05-07 17:15:35 +02:00
elfpatch.go rp2040: patch elf to checksum 2nd stage boot 2021-06-17 12:10:04 +02:00
env.go all: move from os.IsFoo to errors.Is(err, ErrFoo) 2022-08-07 10:32:23 +02:00
error.go compiler: add location information to the IR checker 2019-12-21 20:49:51 +01:00
esp.go all: remove calls to deprecated ioutil package 2022-08-07 10:32:23 +02:00
jobs.go builder: refactor job runner and use a shared semaphore across build jobs 2021-12-30 12:03:12 -05:00
library.go compiler: use the LLVM builtins everywhere 2022-08-28 23:37:56 +02:00
lld.cpp all: update to LLVM 14 2022-04-23 08:45:46 +02:00
mingw-w64.go compiler: use the LLVM builtins everywhere 2022-08-28 23:37:56 +02:00
musl.go all: update musl 2022-10-13 13:38:02 +02:00
nrfutil.go all: remove calls to deprecated ioutil package 2022-08-07 10:32:23 +02:00
objcopy.go all: remove calls to deprecated ioutil package 2022-08-07 10:32:23 +02:00
picolibc.go compiler: replace math aliases with intrinsics 2022-08-30 17:33:16 +02:00
sizes.go darwin: print full size information for -size=full 2022-06-24 13:50:30 +02:00
tools-builtin.go all: remove support for LLVM 11 and LLVM 12 2022-05-07 17:15:35 +02:00
tools-external.go all: update build constraints to Go 1.17 2022-02-04 07:49:46 +01:00
tools.go main: implement tinygo lldb subcommand 2021-10-05 06:26:21 +02:00
uf2.go all: remove calls to deprecated ioutil package 2022-08-07 10:32:23 +02:00