Hello,
I got the following problem:
- In the
…AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\
folder are two versions of avr-gcc4.8.1-arduino5
7.3.0-atmel3.6.1-arduino5
- I need when the project is compiled for Arduboy that Arduino IDE (2.0.0-beta.8) use version from
7.3.0-atmel3.6.1-arduino5
folder, not from the4.8.1-arduino5
folder, otherwise the build fails (I see the errorcc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin
) - The only way I found it can fixed is to change in
platform.txt
file the linecompiler.path={runtime.tools.avr-gcc.path}/bin/
and instead of{runtime.tools.avr-gcc.path}
use there the full path, i.e. I need to change the line tocompiler.path=c:\Users\petr.mazanec\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\bin\
Why is that happening in the first place?
Is there a better way how to fix it than my workaround? Any advice please?
Thanks a lot
STeN