Java Preferences API are a classic example of this false myth, since e.g. on MacOS it behaves differently than in Windows/Linux.
And ever heard of Native Runtime? If you want to create a native runtime, you just need to do this on the target platform.
So this is very odd to me. GoLang went much further, doing true cross compilation