From 19ab793b74c0eb5bed9e776f0f1124e343438458 Mon Sep 17 00:00:00 2001 From: zhuoli Date: Tue, 15 Mar 2022 09:55:56 +0800 Subject: [PATCH] Fix mac sdk compilation error caused by unittest Change-Id: Ie5f36d2a8c2935e86c4ab66c067337fa9e502bab Signed-off-by: zhuoli --- ts2panda/BUILD.gn | 24 ++++-------------------- ts2panda/ts2abc/BUILD.gn | 6 +++++- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/ts2panda/BUILD.gn b/ts2panda/BUILD.gn index 7ea0c340d2..a0e6a24788 100755 --- a/ts2panda/BUILD.gn +++ b/ts2panda/BUILD.gn @@ -243,24 +243,8 @@ ohos_copy("copy_ts2abc_tests") { } group("ts2abc_unittests") { - testonly = true - deps = [ "tests:ts2abc_tests(${buildtool_linux})" ] - - # if (host_os == "linux") { - # deps += [ "${ts2abc_root}/ts2abc/tests:unittest" ] - # } -} - -# Workaround for dev brach. Should be about to remove shortly -group("src_linux") { -} -group("src_win") { -} -group("src_mac") { -} -group("ts2abc_linux") { -} -group("ts2abc_win") { -} -group("ts2abc_mac") { + if (host_os == "linux") { + testonly = true + deps = [ "tests:ts2abc_tests(${buildtool_linux})" ] + } } diff --git a/ts2panda/ts2abc/BUILD.gn b/ts2panda/ts2abc/BUILD.gn index bb00179e70..ab44c2179f 100755 --- a/ts2panda/ts2abc/BUILD.gn +++ b/ts2panda/ts2abc/BUILD.gn @@ -53,7 +53,11 @@ ohos_executable("ts2abc") { configs = [ ":ts2abc_config" ] - cflags = [ "-Wno-c++20-designator" ] + cflags = [ + "-Wno-c++20-designator", + "-Wno-c99-dextensions", + "-Wno-unkonwn-warning-option", + ] deps = [ sdk_libc_secshared_dep ] -- Gitee