tinygo/compileopts
Ayke van Laethem 49ec3eb58e builder: add optsize attribute while building the package
This simplifies future changes. While the move itself is very simple, it
required some other changes to a few transforms that create new
functions to add the optsize attribute manually. It also required
abstracting away the optimization level flags (based on the -opt flag)
so that it can easily be retrieved from the config object.

This commit does not impact binary size on baremetal and WebAssembly.
I've seen a few tests on linux/amd64 grow slightly in size, but I'm not
too worried about those.
2021-04-08 11:40:59 +02:00
..
config.go builder: add optsize attribute while building the package 2021-04-08 11:40:59 +02:00
options.go builder: add optsize attribute while building the package 2021-04-08 11:40:59 +02:00
options_test.go compileopts: improve error reporting of unsupported flags 2020-05-16 23:29:47 +02:00
target.go throw an error on windows builds with no target specified 2021-03-29 09:35:19 +02:00
target_test.go compileopts: simplify copyProperties using reflection 2020-09-20 13:49:16 +02:00