diff options
| author | ruki <[email protected]> | 2018-12-13 00:39:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-12-12 22:35:17 +0800 |
| commit | a16fcd5180de7d18426106e5d398ebc04a96841d (patch) | |
| tree | ebffa6df08a28820f54a047b9b457c13c8bb8a32 /xmake/platforms | |
| parent | fd4ca8751a6d64de8088a05e6f0a8ac4e6e48d2d (diff) | |
improve to xmake global
Diffstat (limited to 'xmake/platforms')
| -rw-r--r-- | xmake/platforms/android/check.lua | 2 | ||||
| -rw-r--r-- | xmake/platforms/checker.lua | 2 | ||||
| -rw-r--r-- | xmake/platforms/cross/check.lua | 2 | ||||
| -rw-r--r-- | xmake/platforms/iphoneos/check.lua | 4 | ||||
| -rw-r--r-- | xmake/platforms/linux/check.lua | 2 | ||||
| -rw-r--r-- | xmake/platforms/macosx/check.lua | 4 | ||||
| -rw-r--r-- | xmake/platforms/mingw/check.lua | 2 | ||||
| -rw-r--r-- | xmake/platforms/watchos/check.lua | 4 | ||||
| -rw-r--r-- | xmake/platforms/windows/check.lua | 2 |
9 files changed, 12 insertions, 12 deletions
diff --git a/xmake/platforms/android/check.lua b/xmake/platforms/android/check.lua index b33bdcf5f..4e5d4e9ea 100644 --- a/xmake/platforms/android/check.lua +++ b/xmake/platforms/android/check.lua @@ -23,7 +23,7 @@ -- -- imports -import(".checker") +import("platforms.checker", {rootdir = os.programdir()}) import("detect.sdks.find_ndk") -- check the ndk toolchain diff --git a/xmake/platforms/checker.lua b/xmake/platforms/checker.lua index 927590d41..35efba82f 100644 --- a/xmake/platforms/checker.lua +++ b/xmake/platforms/checker.lua @@ -122,7 +122,7 @@ end function check_xcode(config, optional) -- find xcode - local xcode = find_xcode(config.get("xcode"), {force = true, verbose = true, plat = config.get("plat"), arch = config.get("arch")}) + local xcode = find_xcode(config.get("xcode"), {force = not optional, verbose = true, plat = config.get("plat"), arch = config.get("arch")}) if xcode then -- save it (maybe to global) diff --git a/xmake/platforms/cross/check.lua b/xmake/platforms/cross/check.lua index 7cfc02190..0508eae17 100644 --- a/xmake/platforms/cross/check.lua +++ b/xmake/platforms/cross/check.lua @@ -24,7 +24,7 @@ -- imports import("detect.sdks.find_cross_toolchain") -import(".checker") +import("platforms.checker", {rootdir = os.programdir()}) -- check the architecture function __check_arch(config) diff --git a/xmake/platforms/iphoneos/check.lua b/xmake/platforms/iphoneos/check.lua index 4d81689d4..fc1b971b1 100644 --- a/xmake/platforms/iphoneos/check.lua +++ b/xmake/platforms/iphoneos/check.lua @@ -23,7 +23,7 @@ -- -- imports -import(".checker") +import("platforms.checker", {rootdir = os.programdir()}) -- get toolchains function _toolchains(config) @@ -96,7 +96,7 @@ function main(kind, toolkind) -- init the check list of global _g.global = { - checker.check_xcode + { checker.check_xcode, true } } -- check it diff --git a/xmake/platforms/linux/check.lua b/xmake/platforms/linux/check.lua index 5c52b877f..87a225eec 100644 --- a/xmake/platforms/linux/check.lua +++ b/xmake/platforms/linux/check.lua @@ -24,7 +24,7 @@ -- imports import("detect.sdks.find_cross_toolchain") -import(".checker") +import("platforms.checker", {rootdir = os.programdir()}) -- check the architecture function __check_arch(config) diff --git a/xmake/platforms/macosx/check.lua b/xmake/platforms/macosx/check.lua index c85d408e7..1a6f4d1ef 100644 --- a/xmake/platforms/macosx/check.lua +++ b/xmake/platforms/macosx/check.lua @@ -23,7 +23,7 @@ -- -- imports -import(".checker") +import("platforms.checker", {rootdir = os.programdir()}) -- get toolchains function _toolchains(config) @@ -156,7 +156,7 @@ function main(kind, toolkind) -- init the check list of global _g.global = { - checker.check_xcode + { checker.check_xcode, true } , checker.check_cuda } diff --git a/xmake/platforms/mingw/check.lua b/xmake/platforms/mingw/check.lua index bdf87b715..085d207ea 100644 --- a/xmake/platforms/mingw/check.lua +++ b/xmake/platforms/mingw/check.lua @@ -24,7 +24,7 @@ -- imports import("detect.sdks.find_cross_toolchain") -import(".checker") +import("platforms.checker", {rootdir = os.programdir()}) -- get toolchains function _toolchains(config) diff --git a/xmake/platforms/watchos/check.lua b/xmake/platforms/watchos/check.lua index d38639f01..b9c943210 100644 --- a/xmake/platforms/watchos/check.lua +++ b/xmake/platforms/watchos/check.lua @@ -23,7 +23,7 @@ -- -- imports -import(".checker") +import("platforms.checker", {rootdir = os.programdir()}) -- get toolchains function _toolchains(config) @@ -96,7 +96,7 @@ function main(kind, toolkind) -- init the check list of global _g.global = { - checker.check_xcode + { checker.check_xcode, true } } -- check it diff --git a/xmake/platforms/windows/check.lua b/xmake/platforms/windows/check.lua index c0100e249..4bcc123e0 100644 --- a/xmake/platforms/windows/check.lua +++ b/xmake/platforms/windows/check.lua @@ -23,7 +23,7 @@ -- -- imports -import(".checker") +import("platforms.checker", {rootdir = os.programdir()}) import("environment") import("core.base.option") import("detect.sdks.find_vstudio") |
