From a41be77cd1f5f8e965b9b280a78badff765bb91c Mon Sep 17 00:00:00 2001 From: lukai Date: Mon, 1 Aug 2022 10:45:36 +0800 Subject: [PATCH] liteos_m not build libm issue: https://gitee.com/openharmony/third_party_jerryscript/issues/I5JU3N?from=project-issue Signed-off-by: lukai Change-Id: I2165b4a06ebc224b80f19c4d2b06cb9bcb79ee62 --- BUILD.gn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index ed2293f1..bffca4ab 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -17,10 +17,12 @@ if (defined(ohos_lite)) { # is on lite Os for ipcamera lite_component("jerry_engine") { features = [ "jerry-core", - "jerry-libm", "jerry-ext", "jerry-port/default:jerry-port-default", ] + if (ohos_kernel_type != "liteos_m") { + features += [ "jerry_libm" ] + } } } else { import("//build/ohos.gni") -- Gitee