From e06935214612d5c09dd4e0faf9bb28cb6ec6d895 Mon Sep 17 00:00:00 2001
From: Hisham Muhammad <hisham@gobolinux.org>
Date: Wed, 2 Mar 2022 17:27:25 -0300
Subject: macOS: make deployment target 11.0 if running on macOS 11+

---
 src/luarocks/core/cfg.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
index c88d3892..1f055b41 100644
--- a/src/luarocks/core/cfg.lua
+++ b/src/luarocks/core/cfg.lua
@@ -449,7 +449,9 @@ local function make_defaults(lua_version, target_cpu, platforms, home)
          version = "10.3"
       end
       version = vers.parse_version(version)
-      if version >= vers.parse_version("10.10") then
+      if version >= vers.parse_version("11.0") then
+         version = vers.parse_version("11.0")
+      elseif version >= vers.parse_version("10.10") then
          version = vers.parse_version("10.8")
       elseif version >= vers.parse_version("10.5") then
          version = vers.parse_version("10.5")
-- 
cgit v1.2.3-55-g6feb