diff --git a/BUILD.gn b/BUILD.gn index 8a84ac36b3e3c780217689672e32082e184b1749..d238ab396a6699d93b0e92bc52e3d6e24f89c175 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -175,7 +175,7 @@ if (defined(ohos_lite)) { "-D_POSIX_C_SOURCE=200112", ] defines = [] - if (use_ffrt && is_ohos) { + if (libuv_use_ffrt && is_ohos) { defines += [ "USE_FFRT" ] } @@ -288,7 +288,7 @@ if (defined(ohos_lite)) { "src/unix/random-sysctl-linux.c", "src/unix/proctitle.c", ] - if (use_ffrt) { + if (libuv_use_ffrt) { external_deps += [ "ffrt:libffrt" ] } if (is_ohos) { diff --git a/bundle.json b/bundle.json index 060fb740d63ede11df31299b8d93c56152e96597..ff7e6701f7897f4ef1c3a6132477ea15dab7926e 100644 --- a/bundle.json +++ b/bundle.json @@ -15,7 +15,7 @@ "syscap": [ "SystemCapability.ArkUI.ArkUI.Libuv" ], - "features": [], + "features": ["libuv_use_ffrt"], "adapted_system_type": [ "standard" ], diff --git a/libuv.gni b/libuv.gni index db75415392d5263749f7d263d12b9b97b28619f8..bb909a47151aa7b496afd867e14dae3137665ad0 100644 --- a/libuv.gni +++ b/libuv.gni @@ -12,7 +12,7 @@ # limitations under the License. declare_args() { - use_ffrt = false + libuv_use_ffrt = false enable_async_stack = true enable_uv_statisic = false enable_print_errno_abort = true