diff options
author | Ayke van Laethem <[email protected]> | 2021-11-01 19:11:04 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-11-03 23:03:44 +0100 |
commit | 29206cf0a4a8efcdabe50306090fe6125f6b2d0c (patch) | |
tree | 2df5e3376a0a8b026d6f819f35e2a80880c7b039 /targets/attiny85.json | |
parent | c2165f74d81a2ed1b1649e710b73f1c613a54185 (diff) | |
download | tinygo-29206cf0a4a8efcdabe50306090fe6125f6b2d0c.tar.gz tinygo-29206cf0a4a8efcdabe50306090fe6125f6b2d0c.zip |
targets: add CPU property everywhere
This is for consistency with Clang, which always adds a CPU flag even if
it's not specified in CFLAGS.
This commit also adds some tests to make sure the Clang target-cpu
matches the CPU property in the JSON files.
This does have an effect on the generated binaries. The effect is very
small though: on average just 0.2% increase in binary size, apparently
because Cortex-M3 and Cortex-M4 are compiled a bit differently. However,
when rebased on top of https://github.com/tinygo-org/tinygo/pull/2218
(minsize), the difference drops to -0.1% (a slight decrease on average).
Diffstat (limited to 'targets/attiny85.json')
-rw-r--r-- | targets/attiny85.json | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/targets/attiny85.json b/targets/attiny85.json index 8cb4fcc0c..f28f4f84d 100644 --- a/targets/attiny85.json +++ b/targets/attiny85.json @@ -3,7 +3,6 @@ "cpu": "attiny85", "build-tags": ["attiny85", "attiny", "avr2", "avr25"], "cflags": [ - "-mmcu=attiny85", "-D__AVR_ARCH__=25" ], "ldflags": [ |