[macOS] Update clang version check.

This commit is contained in:
Pāvels Nadtočajevs 2025-10-25 22:41:40 +03:00
parent ab6c6eece8
commit bc85da65a5
No known key found for this signature in database
GPG key ID: 8413210218EF35D2

View file

@ -696,17 +696,11 @@ elif methods.using_clang(env):
# Apple LLVM versions differ from upstream LLVM version \o/, compare
# in https://en.wikipedia.org/wiki/Xcode#Toolchain_versions
if methods.is_apple_clang(env):
if cc_version_major < 10:
if cc_version_major < 16:
print_error(
"Detected Apple Clang version older than 10, which does not fully "
"support C++17. Supported versions are Apple Clang 10 and later."
"Detected Apple Clang version older than 16, supported versions are Apple Clang 16 (Xcode 16) and later."
)
Exit(255)
elif env["debug_paths_relative"] and cc_version_major < 12:
print_warning(
"Apple Clang < 12 doesn't support -ffile-prefix-map, disabling `debug_paths_relative` option."
)
env["debug_paths_relative"] = False
else:
if cc_version_major < 6:
print_error(