Files
macports-ports/devel/gn/files/patch-macos-version.diff
2026-04-27 23:02:42 +04:00

23 lines
805 B
Diff

From 2172257dffa703fd8f567bf6b1268012a4eb7ad7 Mon Sep 17 00:00:00 2001
From: barracuda156 <vital.had@gmail.com>
Date: Fri, 3 Nov 2023 13:21:31 +0800
Subject: [PATCH 1/5] gen.py: do not force random macOS version
---
build/gen.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git build/gen.py build/gen.py
index adb622a9..6420b4a1 100755
--- build/gen.py
+++ build/gen.py
@@ -533,7 +533,7 @@
elif platform.is_darwin():
# Feel free to bump this value whenever you want, as long as all non-EOL
# macOS versions are supported.
- min_mac_version_flag = '-mmacosx-version-min=14'
+ min_mac_version_flag = '-mmacosx-version-min=@DEPLOYMENT_TARGET@'
cflags.append(min_mac_version_flag)
ldflags.append(min_mac_version_flag)
elif platform.is_aix():