aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2022-03-02 17:27:25 -0300
committerHisham Muhammad <hisham@gobolinux.org>2022-03-02 17:27:25 -0300
commite06935214612d5c09dd4e0faf9bb28cb6ec6d895 (patch)
tree421bf439c64f9a8150bfd752659c46c8301958f4
parentc975c3b970eb1dffb4f448ff2d9dce54f63689e0 (diff)
downloadluarocks-e06935214612d5c09dd4e0faf9bb28cb6ec6d895.tar.gz
luarocks-e06935214612d5c09dd4e0faf9bb28cb6ec6d895.tar.bz2
luarocks-e06935214612d5c09dd4e0faf9bb28cb6ec6d895.zip
macOS: make deployment target 11.0 if running on macOS 11+
-rw-r--r--src/luarocks/core/cfg.lua4
1 files changed, 3 insertions, 1 deletions
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)
449 version = "10.3" 449 version = "10.3"
450 end 450 end
451 version = vers.parse_version(version) 451 version = vers.parse_version(version)
452 if version >= vers.parse_version("10.10") then 452 if version >= vers.parse_version("11.0") then
453 version = vers.parse_version("11.0")
454 elseif version >= vers.parse_version("10.10") then
453 version = vers.parse_version("10.8") 455 version = vers.parse_version("10.8")
454 elseif version >= vers.parse_version("10.5") then 456 elseif version >= vers.parse_version("10.5") then
455 version = vers.parse_version("10.5") 457 version = vers.parse_version("10.5")