Why would you need an Apple account to install any other compiler besides XCode - something you wouldn’t be doing with Linux?
Admittedly I stopped looking into it and just shelfed the laptop until requesting a saner one.
But more to the point. Even if you didn’t know about that option you gave up because you didn’t want to sign up for a free account?