ensure the avr example keeps compiling (#17663)

* ensure the avr example keeps compiling

* Update tests/avr/thello.nim

* now compiles properly
This commit is contained in:
Andreas Rumpf 2021-04-07 13:40:57 +02:00 • committed by GitHub
commit 939df8cbda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 0 deletions

12
tests/avr/nim.cfg Normal file
View file

@ -0,0 +1,12 @@
avr.standalone.gcc.path = "/usr/bin"
avr.standalone.gcc.exe = "avr-gcc"
avr.standalone.gcc.linkerexe = "avr-gcc"
passC = "-Os"
passC = "-DF_CPU=16000000UL"
passC = "-mmcu=atmega328p"
passL = "-mmcu=atmega328p"
passC = "-flto"
passL = "-flto"
cpu = "avr"
deadCodeElim = "on"
gc = "arc"