From b931365e0f6491a5776186d50a054136fcd9ca09 Mon Sep 17 00:00:00 2001 From: pilipala195 Date: Tue, 30 Mar 2021 10:37:02 +0800 Subject: [PATCH] strip all system component by default. --- toolchain/BUILD.gn | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/toolchain/BUILD.gn b/toolchain/BUILD.gn index e94c1de..058eb2f 100755 --- a/toolchain/BUILD.gn +++ b/toolchain/BUILD.gn @@ -21,9 +21,7 @@ if (board_toolchain != "" && use_board_toolchain) { cxx = ohos_current_cxx_command ar = ohos_current_ar_command ld = ohos_current_ld_command - if (ohos_build_type == "release") { - strip = ohos_current_strip_command - } + strip = ohos_current_strip_command } } else if (board_toolchain_type == "clang") { clang_toolchain(board_toolchain) { @@ -31,9 +29,7 @@ if (board_toolchain != "" && use_board_toolchain) { cxx = ohos_current_cxx_command ar = ohos_current_ar_command ld = ohos_current_ld_command - if (ohos_build_type == "release") { - strip = ohos_current_strip_command - } + strip = ohos_current_strip_command } } } else { @@ -42,8 +38,6 @@ if (board_toolchain != "" && use_board_toolchain) { cxx = ohos_current_cxx_command ar = ohos_current_ar_command ld = ohos_current_ld_command - if (ohos_build_type == "release") { - strip = ohos_current_strip_command - } + strip = ohos_current_strip_command } } -- GitLab