I'm looking for a way to compile a C++ project to work on M1 with different macOS versions (both macOS 11 and 12).
I looked at this question: Build Apple Silicon binary on Intel machine
And it suggests using:
-target arm64-apple-macos11
It works well for macOS 11 but doesn't work for macOS 12. For macOS 12 there are other targets:
-target arm64-apple-macos12
-target arm64-apple-macos12.3
Is there a generic -target
I can use that will work for all macOS versions (maybe even future versions)?