From ac2bba4935abdebebaca2dc937c3fb995e044579 Mon Sep 17 00:00:00 2001 From: robotsl Date: Wed, 5 Jun 2024 11:28:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=B8=8D=E8=A7=84=E8=8C=83feature=E6=95=B4?= =?UTF-8?q?=E6=94=B90603?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: robotsl --- libuv.gni | 1 + 1 file changed, 1 insertion(+) diff --git a/libuv.gni b/libuv.gni index db75415..32e2da0 100644 --- a/libuv.gni +++ b/libuv.gni @@ -11,6 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. + declare_args() { use_ffrt = false enable_async_stack = true -- Gitee From 2a24b1c01e3ca3ff619221a0ea9c2ddf8b3c32de Mon Sep 17 00:00:00 2001 From: robotsl Date: Thu, 6 Jun 2024 10:07:16 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=B8=8D=E8=A7=84=E8=8C=83feature=E6=95=B4?= =?UTF-8?q?=E6=94=B90606v2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: robotsl --- libuv.gni | 1 - 1 file changed, 1 deletion(-) diff --git a/libuv.gni b/libuv.gni index 32e2da0..db75415 100644 --- a/libuv.gni +++ b/libuv.gni @@ -11,7 +11,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - declare_args() { use_ffrt = false enable_async_stack = true -- Gitee From 4a534d88c3f8c5f1f5575852f4b531db6d240415 Mon Sep 17 00:00:00 2001 From: robotsl Date: Thu, 6 Jun 2024 11:30:38 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=B8=8D=E8=A7=84=E8=8C=83feature=E6=95=B4?= =?UTF-8?q?=E6=94=B90606v3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: robotsl --- BUILD.gn | 4 ++-- bundle.json | 2 +- libuv.gni | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 8a84ac3..d238ab3 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 060fb74..ff7e670 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 db75415..bb909a4 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 -- Gitee