You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/09/08 13:42:18 UTC

(nuttx) branch master updated: toolchain/ghs: fix the ghs build warning

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 99df615c9b toolchain/ghs: fix the ghs build warning
99df615c9b is described below

commit 99df615c9b352f836e7c080c8e3cec909e974afa
Author: guoshichao <gu...@xiaomi.com>
AuthorDate: Fri Jun 21 14:14:36 2024 +0800

    toolchain/ghs: fix the ghs build warning
    
    CXX:  libcxxmini/libxx_new.cxx cxarm: cxarm: cxarm: cxarm: Warning: cxarm: cxarm: Unknown option "--gnu++17" passed to linker
    Warning: Warning: Warning: Warning: cxarm: Unknown option "--gnu++17" passed to linker
    Unknown option "--gnu++17" passed to linker
    Warning: Unknown option "--gnu++17" passed to linker
    Unknown option "--gnu++17" passed to linker
    Unknown option "--gnu++17" passed to linker
    Warning: Unknown option "--gnu++17" passed to linker
    CXX:  libcxxmini/libxx_newa.cxx cxarm: Warning: Unknown option "--gnu++17" passed to linker
    
    Signed-off-by: guoshichao <gu...@xiaomi.com>
---
 boards/arm/mps/mps2-an500/configs/nsh/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/boards/arm/mps/mps2-an500/configs/nsh/defconfig b/boards/arm/mps/mps2-an500/configs/nsh/defconfig
index 08fd8e0a97..5c58e64714 100644
--- a/boards/arm/mps/mps2-an500/configs/nsh/defconfig
+++ b/boards/arm/mps/mps2-an500/configs/nsh/defconfig
@@ -23,6 +23,7 @@ CONFIG_CMSDK_UART0_RX_IRQ=16
 CONFIG_CMSDK_UART0_SERIAL_CONSOLE=y
 CONFIG_CMSDK_UART0_TX_IRQ=17
 CONFIG_CMSDK_UART=y
+CONFIG_CXX_STANDARD="c++17"
 CONFIG_DEBUG_ASSERTIONS=y
 CONFIG_DEBUG_FEATURES=y
 CONFIG_DEBUG_SCHED=y