summaryrefslogtreecommitdiff
path: root/xmake/toolchains/xcode/load_iphoneos.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-20 00:38:29 +0800
committerruki <[email protected]>2020-06-19 21:50:59 +0800
commitf5392149886b2083ec0d6db2adef3da405297fe8 (patch)
tree12a41f554b7e4bce55a8fb6f8e46aee2c4eba3f9 /xmake/toolchains/xcode/load_iphoneos.lua
parentca1bd50cc1e0b5939311ac73c61180957763cbbc (diff)
improve xcode and msvc toolchains
Diffstat (limited to 'xmake/toolchains/xcode/load_iphoneos.lua')
-rw-r--r--xmake/toolchains/xcode/load_iphoneos.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/toolchains/xcode/load_iphoneos.lua b/xmake/toolchains/xcode/load_iphoneos.lua
index 842064cb7..1d495a5cb 100644
--- a/xmake/toolchains/xcode/load_iphoneos.lua
+++ b/xmake/toolchains/xcode/load_iphoneos.lua
@@ -32,7 +32,7 @@ function main(toolchain)
local platname = simulator and "iPhoneSimulator" or "iPhoneOS"
-- init target minimal version
- local target_minver = config.get("target_minver")
+ local target_minver = config.get("target_minver_iphoneos")
if target_minver and tonumber(target_minver) > 10 and (arch == "armv7" or arch == "armv7s" or arch == "i386") then
target_minver = "10" -- iOS 10 is the maximum deployment target for 32-bit targets
end
@@ -40,7 +40,7 @@ function main(toolchain)
-- init the xcode sdk directory
local xcode_dir = config.get("xcode")
- local xcode_sdkver = config.get("xcode_sdkver")
+ local xcode_sdkver = config.get("xcode_sdkver_iphoneos")
local xcode_sdkdir = format("%s/Contents/Developer/Platforms/%s.platform/Developer/SDKs/%s%s.sdk", xcode_dir, platname, platname, xcode_sdkver)
-- init flags for c/c++