I keep getting this:
-macosx_version_min has been renamed to -macos_version_min
anytime I compile anything. Any reason why? Can I prevent it?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityThis is a change in Xcode 15.
My answer is from a quick google and seeing other bug reports on this issue however I haven't looked in enough detail to say more than the line above but I think the issue is Apple introduced a new linker (and also renamed the old one to classic which was already used)which has this change in flag.
gcc have also changed their code to fix this From the gcc bug
Darwin: Use -platform_version when available [PR110624].
Later versions of the static linker support a more flexible flag to describe the OS, OS version and SDK used to build the code. This replaces the functionality of '-mmacosx_version_min' (which is now deprecated, leading to the diagnostic described in the PR).
We now use the platform_version flag when available which avoids the diagnostic.
gcc hello.c
(notclang
, realgcc
) -- but it also showed when I compiledemacs
withclang
.