diff options
| author | ruki <[email protected]> | 2021-03-18 23:29:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-18 23:29:20 +0800 |
| commit | 6c5d06600df7b859791fafb8ea87fd87f63fb825 (patch) | |
| tree | 87543d39131ce6437a70a4355fb291e7b0867182 /xmake/toolchains/ndk/check.lua | |
| parent | 5f4104bb7c5b188965f30d401762162294764b73 (diff) | |
improve ndk toolchain
Diffstat (limited to 'xmake/toolchains/ndk/check.lua')
| -rw-r--r-- | xmake/toolchains/ndk/check.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/toolchains/ndk/check.lua b/xmake/toolchains/ndk/check.lua index 583e6d591..9f54cdb9a 100644 --- a/xmake/toolchains/ndk/check.lua +++ b/xmake/toolchains/ndk/check.lua @@ -25,13 +25,13 @@ import("detect.sdks.find_android_sdk") -- check the ndk toolchain function _check_ndk(toolchain) - local ndk = find_ndk(toolchain:config("ndk") or config.get("ndk"), {force = true, verbose = true}) + local ndk = find_ndk(toolchain:config("ndk") or config.get("ndk"), {force = true, verbose = true, sdkver = toolchain:config("sdkver")}) if not ndk then -- find it from packages for _, package in ipairs(toolchain:packages()) do local installdir = package:installdir() if installdir and os.isdir(installdir) then - ndk = find_ndk(installdir, {force = true, verbose = true}) + ndk = find_ndk(installdir, {force = true, verbose = true, sdkver = toolchain:config("sdkver")}) if ndk then break end @@ -49,11 +49,12 @@ function _check_ndk(toolchain) toolchain:config_set("ndk_sysroot", ndk.sysroot) toolchain:configs_save() else + --[[TODO -- failed cprint("${bright color.error}please run:") cprint(" - xmake config --ndk=xxx") cprint("or - xmake global --ndk=xxx") - raise() + raise()]] end end |
