I'm trying to build for device using playdate-cpp (GitHub - nstbayless/playdate-cpp: C++ on playdate)
I'm using a M1 Macbook pro 8gb RAM on the latest system update.
To build for device I do as specified at this page: Inside Playdate with C
When It comes to the linking step I get this error:
/usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: .data has both ordered
[`.ARM.exidx.text.__aeabi_atexit' in /usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libstdc++.a(atexit_arm.o)] and unordered
[`.data.__global_locale' in /usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc.a(lib_a-locale.o)] sections
/usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: final link failed: bad value
It is specified on the repository above, and in a forum post that updating the ARM toolchain might solve the problem. I've downloaded and installed a newer version from Arm GNU Toolchain Downloads – Arm Developer
But IDK how to specify the path to that toolchain (which has installed under /Applications/ArmGNUToolchain
)