From 2f7b47a760e9ce1854fcf18de6d28e2e0d409602 Mon Sep 17 00:00:00 2001 From: star9029 Date: Thu, 30 Jan 2025 17:04:46 +0800 Subject: [PATCH] Update xmake.lua --- packages/r/reactiveplusplus/xmake.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/r/reactiveplusplus/xmake.lua b/packages/r/reactiveplusplus/xmake.lua index 05c1f8f3248..45c353e867e 100644 --- a/packages/r/reactiveplusplus/xmake.lua +++ b/packages/r/reactiveplusplus/xmake.lua @@ -17,6 +17,11 @@ package("reactiveplusplus") if on_check then on_check(function (package) + if package:is_plat("android") then + local ndk = package:toolchain("ndk") + local ndkver = ndk:config("ndkver") + assert(ndkver and tonumber(ndkver) > 22, "package(reactiveplusplus) require ndk version > 22") + end if package:version() and package:version():ge("2.2.0") then local msvc = package:toolchain("msvc") if msvc then @@ -28,12 +33,7 @@ package("reactiveplusplus") end end if package:is_plat("android") then - local ndk = package:toolchain("ndk") - local ndkver = ndk:config("ndkver") - assert(ndkver and tonumber(ndkver) > 22, "package(reactiveplusplus) require ndk version > 22") - if package:version():ge("2.2.0") then - raise("package(reactiveplusplus >=2.2.0) unsupported current platform") - end + raise("package(reactiveplusplus >=2.2.0) unsupported current platform") end end end)