From cc2cb394fa98bc969497741b0bb5193ad9bb65d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cduanqinshuo=E2=80=9D?= <“duanqinshuo@lixiang.com”> Date: Fri, 7 Nov 2025 17:57:26 +0800 Subject: [PATCH] arch/arm: Solving the ghs compiler not recognizing 0b prefix representing binary This patch solving the ghs compiler not recognizing 0b prefix representing binary Signed-off-by: Qinshuo Duan duanqinshuo@lixiang.com --- arch/arm/src/cmake/ghs.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/src/cmake/ghs.cmake b/arch/arm/src/cmake/ghs.cmake index cce0c5aeac5..c7529eb9a96 100644 --- a/arch/arm/src/cmake/ghs.cmake +++ b/arch/arm/src/cmake/ghs.cmake @@ -61,6 +61,7 @@ endif() add_link_options(-entry=__start) add_compile_options(--no_commons -Wall -Wshadow -Wundef -nostdlib) +add_compile_options(--option=305) if(CONFIG_DEBUG_CUSTOMOPT) add_compile_options(${CONFIG_DEBUG_OPTLEVEL})