From e74b7e8701bd4b81fba75aaa826b0404e8ced033 Mon Sep 17 00:00:00 2001 From: xuchang Date: Mon, 16 Oct 2023 20:03:45 -0700 Subject: [PATCH] =?UTF-8?q?IssueNo:=20#I88NIK=20=E8=A7=A3=E5=86=B3ohos?= =?UTF-8?q?=E8=AE=BE=E5=A4=87attch=E8=BF=87=E7=A8=8B=E4=B8=AD=5FcreateDevF?= =?UTF-8?q?S=E5=88=9B=E5=BB=BA=E4=B8=B4=E6=97=B6=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=20Description:=20?= =?UTF-8?q?=E4=BB=8E=E5=88=9D=E5=A7=8B=E5=8C=96=E5=8F=82=E6=95=B0=E4=B8=AD?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E4=B8=B4=E6=97=B6=E7=BC=93=E5=AD=98=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E7=9A=84=E8=B7=AF=E5=BE=84=20Sig:=20OpenHarmony-SIG/f?= =?UTF-8?q?lutter-engine=20Feature=20or=20Bugfix:=20Feature=20Binary=20Sou?= =?UTF-8?q?rce:=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuchang --- attachment/repos/dart.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/attachment/repos/dart.patch b/attachment/repos/dart.patch index 840d6495d5..7410e5f256 100644 --- a/attachment/repos/dart.patch +++ b/attachment/repos/dart.patch @@ -228,6 +228,21 @@ index 14762ed7e63..74ea2336efc 100644 } } // namespace bin +diff --git a/runtime/bin/directory_linux.cc b/runtime/bin/directory_linux.cc +index d2af2c50..d4e9082b 100644 +--- a/runtime/bin/directory_linux.cc ++++ b/runtime/bin/directory_linux.cc +@@ -413,6 +413,10 @@ bool Directory::Create(Namespace* namespc, const char* dir_name) { + } + + const char* Directory::SystemTemp(Namespace* namespc) { ++ if (Directory::system_temp_path_override_ != NULL) { ++ return DartUtils::ScopedCopyCString(Directory::system_temp_path_override_); ++ } ++ + PathBuffer path; + const char* temp_dir = getenv("TMPDIR"); + if (temp_dir == NULL) { diff --git a/runtime/bin/main_options.h b/runtime/bin/main_options.h index 2c9100f2af0..49293cd6306 100644 --- a/runtime/bin/main_options.h -- Gitee