diff options
Diffstat (limited to 'xmake/scripts/platform/android/prober.lua')
| -rw-r--r-- | xmake/scripts/platform/android/prober.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/xmake/scripts/platform/android/prober.lua b/xmake/scripts/platform/android/prober.lua index 45f4c23ea..756dcec50 100644 --- a/xmake/scripts/platform/android/prober.lua +++ b/xmake/scripts/platform/android/prober.lua @@ -83,13 +83,19 @@ function prober._probe_ndk_sdkver(configs) end -- probe ok? update it - if ndk_sdkver > 0 then + if type(ndk_sdkver) == "number" and ndk_sdkver > 0 then + + -- save it configs.set("ndk_sdkver", ndk_sdkver) configs.set("__ndk_sdkdir", string.format("%s/platforms/android-%d", ndk, ndk_sdkver)) - end - -- trace - utils.verbose("checking for the SDK version of NDK ... %s", string.format("android-%d", ndk_sdkver)) + -- trace + utils.verbose("checking for the SDK version of NDK ... %s", string.format("android-%d", ndk_sdkver)) + else + + -- trace + utils.verbose("checking for the SDK version of NDK ... no") + end -- ok return true |
