[gn/mac] bump HOST_LINK_VERSION to 520

With this, clang will pass -platform_version instead of
-mmacosx_version_min to the linker. Recent versions of the linker
complain that the flag is now spelled mmacos_version_min (without
the x), and this supresses that warning.

520 is over 4 years old by now, so just changing this unconditionally
seems fine.
This commit is contained in:
Nico Weber
2024-09-04 12:03:44 -04:00
parent 697bc748f9
commit 7764959872

View File

@@ -68,7 +68,7 @@ write_cmake_config("Config") {
# FIXME: Hardcoding this isn't great, but assuming that the host ld version
# has anything to do with the ld version where the built clang will run
# isn't either. Probably want to make this a declare_args.
values += [ "HOST_LINK_VERSION=305" ]
values += [ "HOST_LINK_VERSION=520" ]
} else {
values += [ "HOST_LINK_VERSION=" ]
}