--- build/config/compiler/BUILD.gn 2025-10-27 10:09:40.000000000 +0800 +++ build/config/compiler/BUILD.gn 2025-11-04 05:14:09.000000000 +0800 @@ -523,6 +523,12 @@ # Apple compiler flags setup. # --------------------------------- if (is_apple) { + + # Legacy-Support: + cflags += [ "-isystem@PREFIX@/include/LegacySupport" ] + cflags_cc += [ "-isystem@PREFIX@/include/LegacySupport" ] + ldflags += [ "-Wl,@PREFIX@/lib/libMacportsLegacySupport.dylib" ] + # On Intel, clang emits both Apple's "compact unwind" information and # DWARF eh_frame unwind information by default, for compatibility reasons. # This flag limits emission of eh_frame information to functions