summaryrefslogtreecommitdiff
path: root/xmake/toolchains/xcode/check.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-03 22:17:53 +0800
committerruki <[email protected]>2021-02-03 22:17:53 +0800
commitc01736b0d6c8677226d4a05dd6df018855514970 (patch)
treef51726b8c87fea210e0f45be70874f6394e5d719 /xmake/toolchains/xcode/check.lua
parent28684d867b6e7e9135e1bcdf105df48432951068 (diff)
rename toolchain:global
Diffstat (limited to 'xmake/toolchains/xcode/check.lua')
-rw-r--r--xmake/toolchains/xcode/check.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/toolchains/xcode/check.lua b/xmake/toolchains/xcode/check.lua
index 0432f852a..6e243c00e 100644
--- a/xmake/toolchains/xcode/check.lua
+++ b/xmake/toolchains/xcode/check.lua
@@ -29,7 +29,7 @@ function main(toolchain)
-- find xcode
local xcode_sdkver = toolchain:config("xcode_sdkver") or config.get("xcode_sdkver")
local xcode = find_xcode(config.get("xcode"), {force = true, verbose = true,
- find_codesign = toolchain:global(),
+ find_codesign = toolchain:is_global(),
sdkver = xcode_sdkver,
plat = toolchain:plat(),
arch = toolchain:arch()})
@@ -40,7 +40,7 @@ function main(toolchain)
-- xcode found
xcode_sdkver = xcode.sdkver
- if toolchain:global() then
+ if toolchain:is_global() then
config.set("xcode", xcode.sdkdir, {force = true, readonly = true})
config.set("xcode_mobile_provision", xcode.mobile_provision, {force = true, readonly = true})
config.set("xcode_codesign_identity", xcode.codesign_identity, {force = true, readonly = true})