aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/cortex-m.json
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-04-14 22:12:25 +0200
committerRon Evans <[email protected]>2021-04-19 13:14:33 +0200
commitf7062199969e2d4760f8a199ecf1639ff286581c (patch)
tree0b2f03cbd7b04172afac8cf8e16932f236017ea4 /targets/cortex-m.json
parent6152a661e846529489461a9f368ae840e17f8066 (diff)
downloadtinygo-f7062199969e2d4760f8a199ecf1639ff286581c.tar.gz
tinygo-f7062199969e2d4760f8a199ecf1639ff286581c.zip
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.
Diffstat (limited to 'targets/cortex-m.json')
-rw-r--r--targets/cortex-m.json1
1 files changed, 0 insertions, 1 deletions
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",