From c2bb0df038b591df32fe0c89c7ad0db06afe3357 Mon Sep 17 00:00:00 2001 From: openharmony_ci <120357966@qq.com> Date: Wed, 31 Jan 2024 06:38:42 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!330=20:?= =?UTF-8?q?=20=E5=9B=9E=E9=80=80=20'Pull=20Request=20!328=20:=20testfwk=5F?= =?UTF-8?q?developer=5Ftest=E4=BB=93=20googletest=5F1.13.0=20=E5=8D=87?= =?UTF-8?q?=E7=BA=A7''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- third_party/lib/cpp/BUILD.gn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/third_party/lib/cpp/BUILD.gn b/third_party/lib/cpp/BUILD.gn index 8c879ea..14945d4 100755 --- a/third_party/lib/cpp/BUILD.gn +++ b/third_party/lib/cpp/BUILD.gn @@ -18,6 +18,9 @@ config("gtest_private_config") { config("gtest_config") { include_dirs = [ "//third_party/googletest/googletest/include" ] + cflags = [ "-std=c++17" ] + cflags_objcc = [ "-std=c++17" ] + cflags_cc = [ "-std=c++17" ] } static_library("gtest") { @@ -53,6 +56,7 @@ static_library("gtest") { "//third_party/googletest/googletest/include/gtest/internal/gtest-string.h", "//third_party/googletest/googletest/include/gtest/internal/gtest-tuple.h", "//third_party/googletest/googletest/include/gtest/internal/gtest-type-util.h", + "//third_party/googletest/googletest/src/gtest-assertion-result.cc", "//third_party/googletest/googletest/src/gtest-death-test.cc", "//third_party/googletest/googletest/src/gtest-filepath.cc", "//third_party/googletest/googletest/src/gtest-internal-inl.h", -- Gitee