From 73c1c991791e2c52cdb9122424aad60aabbcad16 Mon Sep 17 00:00:00 2001 From: Maxime <672982+maximegmd@users.noreply.github.com> Date: Sun, 16 Jun 2024 17:38:46 +0200 Subject: [PATCH] I don't know anymore (#4380) --- packages/l/libuv/xmake.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/l/libuv/xmake.lua b/packages/l/libuv/xmake.lua index 705d3ede5..acc2e4a8b 100644 --- a/packages/l/libuv/xmake.lua +++ b/packages/l/libuv/xmake.lua @@ -33,13 +33,15 @@ package("libuv") end -- https://github.com/libuv/libuv/issues/3411 - on_check("android", function (package) - if package:version():ge("1.47.0") then - local ndk = package:toolchain("ndk") - local ndk_sdkver = ndk:config("ndk_sdkver") - assert(ndk_sdkver and tonumber(ndk_sdkver) >= 24, "package(libuv): need ndk api level >= 24 after v1.47.0") - end - end) + if on_check then + on_check("android", function (package) + if package:version():ge("1.47.0") then + local ndk = package:toolchain("ndk") + local ndk_sdkver = ndk:config("ndk_sdkver") + assert(ndk_sdkver and tonumber(ndk_sdkver) >= 24, "package(libuv): need ndk api level >= 24 after v1.47.0") + end + end) + end on_load(function (package) local version = package:version()