tinygo/builder
Ayke van Laethem f06d7d1bd6 builder: run tools (clang, ...) as separate processes
This is necessary because LLVM defines many options in global variables
that are modified when invoking Clang. In particular, LLVM 10 seems to
have a bug in which it always sets the -pgo-warn-misexpect flag. Setting
it multiple times (over various cc1 invocations) results in an error:

    clang (LLVM option parsing): for the --pgo-warn-misexpect option: may only occur zero or one times!

This is fixed by running the Clang invocation in a new `tinygo`
invocation.

Because we've had issues with lld in the past, also run lld in a
separate process so similar issues won't happen with lld in the future.
2020-04-03 12:41:44 +02:00
..
ar.go builder: write a symbol table when writing out the compiler-rt lib 2019-11-13 13:52:20 +01:00
build.go compiler: refactor public interface 2020-03-25 20:17:46 +01:00
buildcache.go main: refactor compile/link part to a builder package 2019-11-11 20:53:50 +01:00
builtins.go builder: refactor compiler-rt library 2020-03-22 17:14:59 +01:00
cc1as.cpp builder: use builtin Clang when building statically 2019-12-11 20:17:35 +01:00
cc1as.h builder: use builtin Clang when building statically 2019-12-11 20:17:35 +01:00
clang.cpp builder: use builtin Clang when building statically 2019-12-11 20:17:35 +01:00
commands.go Add initial FreeBSD support 2019-12-29 10:48:28 +01:00
config.go main: refactor compile/link part to a builder package 2019-11-11 20:53:50 +01:00
env.go builder: update Clang header location 2019-12-24 08:59:33 +01:00
error.go compiler: add location information to the IR checker 2019-12-21 20:49:51 +01:00
library.go builder: refactor compiler-rt library 2020-03-22 17:14:59 +01:00
lld.cpp main: refactor compile/link part to a builder package 2019-11-11 20:53:50 +01:00
objcopy.go main: refactor compile/link part to a builder package 2019-11-11 20:53:50 +01:00
picolibc.go all: include picolibc for bare metal targets 2020-03-22 17:14:59 +01:00
sizes.go main: refactor compile/link part to a builder package 2019-11-11 20:53:50 +01:00
tools-builtin.go builder: run tools (clang, ...) as separate processes 2020-04-03 12:41:44 +02:00
tools-external.go builder: run tools (clang, ...) as separate processes 2020-04-03 12:41:44 +02:00
tools.go builder: run tools (clang, ...) as separate processes 2020-04-03 12:41:44 +02:00
uf2.go targets: add target circuitplay-bluefruit 2020-01-06 09:23:39 +01:00