Symlinks to ARM toolchain binaries


It seems that the PlayDate SDK installer created a bunch of symlinks in /usr/local/bin/ for various ARM toolchain components (such as arm-none-eabi-g++ for example). They all point to the actual binaries located in /usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/bin/. This results in a conflict when the user tries to install an ARM toolchain of their own (such as brew install arm-none-eabi-gcc).

Is it safe to overwrite these symlinks? If no, is there an automatic way to restore them when they are needed?

Deleting or overwriting the symlinks will cause builds to fail, but you should be able to restore them with this shell command:

ln -sf /usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/bin/* /usr/local/bin

(Or you can just run the Playdate SDK installer again.)

1 Like