From 243172074a0d47c713ee605bb4513c028eea613c Mon Sep 17 00:00:00 2001 From: leiyuqian Date: Fri, 28 Oct 2022 11:38:01 +0800 Subject: [PATCH] modify iccarm build error Signed-off-by: leiyuqian Change-Id: Ie151308c03efce3aec000fafb5be7a58157d5563 --- startup_lite/bootstrap_hal/BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/startup_lite/bootstrap_hal/BUILD.gn b/startup_lite/bootstrap_hal/BUILD.gn index 9c19070bb..fd25c0045 100644 --- a/startup_lite/bootstrap_hal/BUILD.gn +++ b/startup_lite/bootstrap_hal/BUILD.gn @@ -21,5 +21,8 @@ hctest_suite("ActsBootstrapTest") { "src", "//commonlibrary/utils_lite/include", ] - cflags = [ "-Wno-error" ] + + if (board_toolchain_type != "iccarm") { + cflags = [ "-Wno-error" ] + } } -- GitLab