tinygo/compileopts
Ayke van Laethem a6246e60f3 main: remove -target flag for LLVM targets
It is better to use environment variables (GOOS and GOARCH) for
consistency instead of providing two slightly incompatible ways. This
-target flag should only be used to specify a .json file (either
directly or in the TinyGo targets directory). Previously it was possible
to specify the LLVM target as well but that was never really fully
supported.

So:

  - To specify a different OS/arch like you would in regular Go, use
    GOOS and GOARCH.
  - To specify a microcontroller chip or board, use the -target flag.

Also remove the old `os.Setenv` which might have had a purpose long ago
but doesn't have a purpose now.
2021-10-04 18:22:55 +02:00
..
config.go build: normalize target triples to match Clang 2021-09-28 18:44:11 +02:00
options.go main: test other architectures by specifying a different GOARCH 2021-10-04 18:22:55 +02:00
options_test.go compileopts: improve error reporting of unsupported flags 2020-05-16 23:29:47 +02:00
target.go main: remove -target flag for LLVM targets 2021-10-04 18:22:55 +02:00
target_test.go main: remove -target flag for LLVM targets 2021-10-04 18:22:55 +02:00