From f7062199969e2d4760f8a199ecf1639ff286581c Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Wed, 14 Apr 2021 22:12:25 +0200 Subject: builder: hard code Clang compiler At the moment, all targets use the Clang compiler to compile C and assembly files. There is no good reason to make this configurable anymore and in fact it will make future changes more complicated (and thus more likely to have bugs). Therefore, I've removed support for setting the compiler. Note that the same is not true for the linker. While it makes sense to standardize on the Clang compiler (because if Clang doesn't support a target, TinyGo is unlikely to support it either), linkers will remain configurable for the foreseeable future. One example is Xtensa, which is supported by the Xtensa LLVM fork but doesn't have support in ld.lld yet. I've also fixed a bug in compileAndCacheCFile: it wasn't using the right CFlags for caching purposes. This could lead to using stale caches. This commit fixes that too. --- targets/cortex-m.json | 1 - 1 file changed, 1 deletion(-) (limited to 'targets/cortex-m.json') diff --git a/targets/cortex-m.json b/targets/cortex-m.json index bdff605fb..eed685c78 100644 --- a/targets/cortex-m.json +++ b/targets/cortex-m.json @@ -2,7 +2,6 @@ "build-tags": ["cortexm", "baremetal", "linux", "arm"], "goos": "linux", "goarch": "arm", - "compiler": "clang", "gc": "conservative", "scheduler": "tasks", "linker": "ld.lld", -- cgit v1.2.3