You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2022/04/30 00:08:20 UTC

[incubator-nuttx] branch master updated (385519302e -> baf852ff4b)

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

gustavonihei pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


    from 385519302e Corrected typo in sam_spi.c. Debaugcall needs cs not if as ref...
     new c1e5ba4602 libxx: Always build libcxx with -std=c++17
     new 94cb0c6072 arch: Move -nostdinc++ to Tooolchain.defs
     new 7f91fcdf89 boards/arm: Remove the unneeded C++ config from stm32l4/nucleo-l476rg
     new b12c0a1e31 boards: Remove -std=c++1x from Make.defs
     new baf852ff4b tools/ci: Enable libcxx test config

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 arch/arm/src/arm/Toolchain.defs                          |  2 +-
 arch/arm/src/armv6-m/Toolchain.defs                      |  2 +-
 arch/arm/src/armv7-a/Toolchain.defs                      |  2 +-
 arch/arm/src/armv7-m/Toolchain.defs                      |  2 +-
 arch/arm/src/armv7-r/Toolchain.defs                      |  2 +-
 arch/arm/src/armv8-m/Toolchain.defs                      |  2 +-
 arch/avr/src/avr/Toolchain.defs                          |  2 +-
 arch/avr/src/avr32/Toolchain.defs                        |  2 +-
 arch/ceva/src/xc5/Toolchain.defs                         |  2 +-
 arch/ceva/src/xm6/Toolchain.defs                         |  2 +-
 arch/mips/src/mips32/Toolchain.defs                      |  2 +-
 arch/misoc/src/lm32/Toolchain.defs                       |  2 +-
 arch/misoc/src/minerva/Toolchain.defs                    |  2 +-
 arch/or1k/src/mor1kx/Toolchain.defs                      |  2 +-
 arch/risc-v/src/common/Toolchain.defs                    |  2 +-
 arch/sparc/src/sparc_v8/Toolchain.defs                   |  2 +-
 arch/xtensa/src/lx6/Toolchain.defs                       |  2 +-
 arch/xtensa/src/lx7/Toolchain.defs                       |  2 +-
 boards/arm/cxd56xx/spresense/scripts/Make.defs           |  1 -
 boards/arm/lc823450/lc823450-xgevk/scripts/Make.defs     |  1 -
 boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs       |  9 ---------
 boards/risc-v/bl602/bl602evb/scripts/Make.defs           |  2 +-
 boards/risc-v/esp32c3/esp32c3-devkit/scripts/Make.defs   |  2 +-
 boards/sim/sim/sim/scripts/Make.defs                     | 10 ----------
 boards/xtensa/esp32/esp32-devkitc/scripts/Make.defs      |  1 -
 boards/xtensa/esp32/esp32-ethernet-kit/scripts/Make.defs |  1 -
 boards/xtensa/esp32/esp32-wrover-kit/scripts/Make.defs   |  1 -
 boards/xtensa/esp32/ttgo_lora_esp32/scripts/Make.defs    |  1 -
 boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs  |  1 -
 boards/xtensa/esp32s3/esp32s3-devkit/scripts/Make.defs   |  1 -
 libs/libxx/libcxx.defs                                   |  2 +-
 tools/ci/testlist/arm-02.dat                             |  3 ---
 tools/ci/testlist/arm-11.dat                             |  2 --
 33 files changed, 21 insertions(+), 53 deletions(-)


[incubator-nuttx] 02/05: arch: Move -nostdinc++ to Tooolchain.defs

Posted by gu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 94cb0c6072d3a8068933b759fff089f3eaa9c667
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat Apr 30 02:46:08 2022 +0800

    arch: Move -nostdinc++ to Tooolchain.defs
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/arm/src/arm/Toolchain.defs                      | 2 +-
 arch/arm/src/armv6-m/Toolchain.defs                  | 2 +-
 arch/arm/src/armv7-a/Toolchain.defs                  | 2 +-
 arch/arm/src/armv7-m/Toolchain.defs                  | 2 +-
 arch/arm/src/armv7-r/Toolchain.defs                  | 2 +-
 arch/arm/src/armv8-m/Toolchain.defs                  | 2 +-
 arch/avr/src/avr/Toolchain.defs                      | 2 +-
 arch/avr/src/avr32/Toolchain.defs                    | 2 +-
 arch/ceva/src/xc5/Toolchain.defs                     | 2 +-
 arch/ceva/src/xm6/Toolchain.defs                     | 2 +-
 arch/mips/src/mips32/Toolchain.defs                  | 2 +-
 arch/misoc/src/lm32/Toolchain.defs                   | 2 +-
 arch/misoc/src/minerva/Toolchain.defs                | 2 +-
 arch/or1k/src/mor1kx/Toolchain.defs                  | 2 +-
 arch/risc-v/src/common/Toolchain.defs                | 2 +-
 arch/sparc/src/sparc_v8/Toolchain.defs               | 2 +-
 arch/xtensa/src/lx6/Toolchain.defs                   | 2 +-
 arch/xtensa/src/lx7/Toolchain.defs                   | 2 +-
 boards/arm/lc823450/lc823450-xgevk/scripts/Make.defs | 1 -
 19 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/arch/arm/src/arm/Toolchain.defs b/arch/arm/src/arm/Toolchain.defs
index b9d3025b5f..1884947359 100644
--- a/arch/arm/src/arm/Toolchain.defs
+++ b/arch/arm/src/arm/Toolchain.defs
@@ -88,7 +88,7 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN),GNU_EABI)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/arm/src/armv6-m/Toolchain.defs b/arch/arm/src/armv6-m/Toolchain.defs
index 63ef66ca76..7a7caabaa6 100644
--- a/arch/arm/src/armv6-m/Toolchain.defs
+++ b/arch/arm/src/armv6-m/Toolchain.defs
@@ -157,7 +157,7 @@ ifeq ($(CONFIG_MM_KASAN),y)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/arm/src/armv7-a/Toolchain.defs b/arch/arm/src/armv7-a/Toolchain.defs
index b50ca4d873..5837c04920 100644
--- a/arch/arm/src/armv7-a/Toolchain.defs
+++ b/arch/arm/src/armv7-a/Toolchain.defs
@@ -119,7 +119,7 @@ else
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/arm/src/armv7-m/Toolchain.defs b/arch/arm/src/armv7-m/Toolchain.defs
index 84c264f505..96c27fa79b 100644
--- a/arch/arm/src/armv7-m/Toolchain.defs
+++ b/arch/arm/src/armv7-m/Toolchain.defs
@@ -212,7 +212,7 @@ endif
 # Architecture flags
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/arm/src/armv7-r/Toolchain.defs b/arch/arm/src/armv7-r/Toolchain.defs
index c012e2e06f..e42d8ff0cc 100644
--- a/arch/arm/src/armv7-r/Toolchain.defs
+++ b/arch/arm/src/armv7-r/Toolchain.defs
@@ -111,7 +111,7 @@ ifeq ($(CONFIG_ARMV7R_TOOLCHAIN),GNU_EABI)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/arm/src/armv8-m/Toolchain.defs b/arch/arm/src/armv8-m/Toolchain.defs
index 43f707fcbe..32ecf4de9b 100644
--- a/arch/arm/src/armv8-m/Toolchain.defs
+++ b/arch/arm/src/armv8-m/Toolchain.defs
@@ -221,7 +221,7 @@ endif
 # Architecture flags
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/avr/src/avr/Toolchain.defs b/arch/avr/src/avr/Toolchain.defs
index 6f5c7d1c6e..c6508b6844 100644
--- a/arch/avr/src/avr/Toolchain.defs
+++ b/arch/avr/src/avr/Toolchain.defs
@@ -91,7 +91,7 @@ else
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/avr/src/avr32/Toolchain.defs b/arch/avr/src/avr32/Toolchain.defs
index 7938772fdf..ba91d7f8ca 100644
--- a/arch/avr/src/avr32/Toolchain.defs
+++ b/arch/avr/src/avr32/Toolchain.defs
@@ -37,7 +37,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/ceva/src/xc5/Toolchain.defs b/arch/ceva/src/xc5/Toolchain.defs
index 8962cad9b2..099d9d9171 100644
--- a/arch/ceva/src/xc5/Toolchain.defs
+++ b/arch/ceva/src/xc5/Toolchain.defs
@@ -56,7 +56,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ARCHCPUFLAGS  = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION)
 ARCHCPUFLAGS += -Wa,-p -mmsg-full-path -TARG:arch=cevaxc5 -Wa,-vdiv4 -Wno-unused
diff --git a/arch/ceva/src/xm6/Toolchain.defs b/arch/ceva/src/xm6/Toolchain.defs
index 9224448273..b9d4778513 100644
--- a/arch/ceva/src/xm6/Toolchain.defs
+++ b/arch/ceva/src/xm6/Toolchain.defs
@@ -56,7 +56,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ARCHCPUFLAGS  = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION)
 ARCHCPUFLAGS += -Wa,-p
diff --git a/arch/mips/src/mips32/Toolchain.defs b/arch/mips/src/mips32/Toolchain.defs
index d05f8fb764..b367386919 100644
--- a/arch/mips/src/mips32/Toolchain.defs
+++ b/arch/mips/src/mips32/Toolchain.defs
@@ -284,7 +284,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/misoc/src/lm32/Toolchain.defs b/arch/misoc/src/lm32/Toolchain.defs
index 11d5d14174..ec8e8f8cee 100644
--- a/arch/misoc/src/lm32/Toolchain.defs
+++ b/arch/misoc/src/lm32/Toolchain.defs
@@ -61,7 +61,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/misoc/src/minerva/Toolchain.defs b/arch/misoc/src/minerva/Toolchain.defs
index 959c902181..c5b91c7201 100644
--- a/arch/misoc/src/minerva/Toolchain.defs
+++ b/arch/misoc/src/minerva/Toolchain.defs
@@ -33,7 +33,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 # Default toolchain
 
diff --git a/arch/or1k/src/mor1kx/Toolchain.defs b/arch/or1k/src/mor1kx/Toolchain.defs
index a86136da89..403a82da92 100644
--- a/arch/or1k/src/mor1kx/Toolchain.defs
+++ b/arch/or1k/src/mor1kx/Toolchain.defs
@@ -44,7 +44,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/risc-v/src/common/Toolchain.defs b/arch/risc-v/src/common/Toolchain.defs
index 9e9522bb18..d2e1503c9b 100644
--- a/arch/risc-v/src/common/Toolchain.defs
+++ b/arch/risc-v/src/common/Toolchain.defs
@@ -56,7 +56,7 @@ else
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/sparc/src/sparc_v8/Toolchain.defs b/arch/sparc/src/sparc_v8/Toolchain.defs
index b1a42a0f12..98c7e943b1 100644
--- a/arch/sparc/src/sparc_v8/Toolchain.defs
+++ b/arch/sparc/src/sparc_v8/Toolchain.defs
@@ -72,7 +72,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/xtensa/src/lx6/Toolchain.defs b/arch/xtensa/src/lx6/Toolchain.defs
index 9debdb461f..a852f70dce 100644
--- a/arch/xtensa/src/lx6/Toolchain.defs
+++ b/arch/xtensa/src/lx6/Toolchain.defs
@@ -60,7 +60,7 @@ else
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/arch/xtensa/src/lx7/Toolchain.defs b/arch/xtensa/src/lx7/Toolchain.defs
index 5c56d234ac..cd1f3b7e84 100644
--- a/arch/xtensa/src/lx7/Toolchain.defs
+++ b/arch/xtensa/src/lx7/Toolchain.defs
@@ -60,7 +60,7 @@ else
 endif
 
 ARCHCFLAGS += -fno-common
-ARCHCXXFLAGS += -fno-common
+ARCHCXXFLAGS += -fno-common -nostdinc++
 
 ifneq ($(CONFIG_CXX_EXCEPTION),y)
   ARCHCXXFLAGS += -fno-exceptions -fcheck-new
diff --git a/boards/arm/lc823450/lc823450-xgevk/scripts/Make.defs b/boards/arm/lc823450/lc823450-xgevk/scripts/Make.defs
index 11d4a1d0ff..06aab144d3 100644
--- a/boards/arm/lc823450/lc823450-xgevk/scripts/Make.defs
+++ b/boards/arm/lc823450/lc823450-xgevk/scripts/Make.defs
@@ -38,7 +38,6 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
   ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing
 endif
 
-ARCHCXXFLAGS += -nostdinc++
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
 ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10


[incubator-nuttx] 03/05: boards/arm: Remove the unneeded C++ config from stm32l4/nucleo-l476rg

Posted by gu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 7f91fcdf892f153998516ef66232b9a85ffcbb45
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat Apr 30 03:48:54 2022 +0800

    boards/arm: Remove the unneeded C++ config from stm32l4/nucleo-l476rg
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs b/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs
index 12e1bd7115..53c645e368 100644
--- a/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs
+++ b/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs
@@ -42,12 +42,7 @@ CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
 AFLAGS := $(CFLAGS) -D__ASSEMBLY__
 
 ifeq ($(CONFIG_LIBCXX),y)
-  CXXFLAGS += -std=c++14 -D__GLIBCXX__ -DMB_LEN_MAX=8 -DHAVE_DEPENDENT_EH_ABI=0 \
-    -D_DEBUG -D_LIBCPP_BUILD_STATIC -D_LIBCPP_STD_VER=14
-
-  ifneq ($(CONFIG_CXX_EXCEPTION),y)
-    CXXFLAGS += -D_LIBCPP_NO_EXCEPTIONS
-  endif
+  CXXFLAGS += -std=c++14
 endif
 
 NXFLATLDFLAGS1 = -r -d -warn-common


[incubator-nuttx] 04/05: boards: Remove -std=c++1x from Make.defs

Posted by gu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit b12c0a1e3165619cd1e4040a08de03472bdb7825
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat Apr 30 03:47:26 2022 +0800

    boards: Remove -std=c++1x from Make.defs
    
    let the implementation of standard library choice what they want
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 boards/arm/cxd56xx/spresense/scripts/Make.defs           |  1 -
 boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs       |  4 ----
 boards/risc-v/bl602/bl602evb/scripts/Make.defs           |  2 +-
 boards/risc-v/esp32c3/esp32c3-devkit/scripts/Make.defs   |  2 +-
 boards/sim/sim/sim/scripts/Make.defs                     | 10 ----------
 boards/xtensa/esp32/esp32-devkitc/scripts/Make.defs      |  1 -
 boards/xtensa/esp32/esp32-ethernet-kit/scripts/Make.defs |  1 -
 boards/xtensa/esp32/esp32-wrover-kit/scripts/Make.defs   |  1 -
 boards/xtensa/esp32/ttgo_lora_esp32/scripts/Make.defs    |  1 -
 boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs  |  1 -
 boards/xtensa/esp32s3/esp32s3-devkit/scripts/Make.defs   |  1 -
 11 files changed, 2 insertions(+), 23 deletions(-)

diff --git a/boards/arm/cxd56xx/spresense/scripts/Make.defs b/boards/arm/cxd56xx/spresense/scripts/Make.defs
index 3fad02e669..6850d1dfa9 100644
--- a/boards/arm/cxd56xx/spresense/scripts/Make.defs
+++ b/boards/arm/cxd56xx/spresense/scripts/Make.defs
@@ -41,7 +41,6 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
 endif
 
 ARCHCFLAGS += -mabi=aapcs
-ARCHCXXFLAGS += -std=c++11
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
 ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
diff --git a/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs b/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs
index 53c645e368..fdc3cc271e 100644
--- a/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs
+++ b/boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs
@@ -41,10 +41,6 @@ CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
 CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
 AFLAGS := $(CFLAGS) -D__ASSEMBLY__
 
-ifeq ($(CONFIG_LIBCXX),y)
-  CXXFLAGS += -std=c++14
-endif
-
 NXFLATLDFLAGS1 = -r -d -warn-common
 NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections
 LDNXFLATFLAGS = -e main -s 2048
diff --git a/boards/risc-v/bl602/bl602evb/scripts/Make.defs b/boards/risc-v/bl602/bl602evb/scripts/Make.defs
index 147277752e..0cff2525e3 100644
--- a/boards/risc-v/bl602/bl602evb/scripts/Make.defs
+++ b/boards/risc-v/bl602/bl602evb/scripts/Make.defs
@@ -34,7 +34,7 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
 endif
 
 ARCHCPUFLAGS += -mno-relax
-ARCHCXXFLAGS += -std=c++17 -pipe
+ARCHCXXFLAGS += -pipe
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
 ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/scripts/Make.defs b/boards/risc-v/esp32c3/esp32c3-devkit/scripts/Make.defs
index 16453b4d73..eaa5000d32 100644
--- a/boards/risc-v/esp32c3/esp32c3-devkit/scripts/Make.defs
+++ b/boards/risc-v/esp32c3/esp32c3-devkit/scripts/Make.defs
@@ -38,7 +38,7 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
 endif
 
 ARCHCFLAGS += -msmall-data-limit=0
-ARCHCXXFLAGS += -msmall-data-limit=0 -std=c++17
+ARCHCXXFLAGS += -msmall-data-limit=0
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
 ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic
diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs
index d625a0a0e1..ef671f9b41 100644
--- a/boards/sim/sim/sim/scripts/Make.defs
+++ b/boards/sim/sim/sim/scripts/Make.defs
@@ -116,16 +116,6 @@ AFLAGS := $(CFLAGS) -D__ASSEMBLY__
 RUSTFLAGS := $(ARCHOPTIMIZATIONRUST)
 
 ifeq ($(CONFIG_LIBCXX),y)
-  # Why c++17?
-  #  * libcxx seems to require c++11.
-  #  * The compiler defaults varies:
-  #      clang/macOS (from xcode): 199711L
-  #      gcc/ubuntu:               201402L
-  #  * There is a precedent to use c++14.
-  #    (boards/arm/stm32l4/nucleo-l476rg/scripts/Make.defs)
-  #  * libs/libxx/libcxx/src/barrier.cpp depends on aligned new
-  CXXFLAGS += -std=c++17
-
   ifeq ($(CONFIG_HOST_MACOS),y)
     # macOS uses libc++abi
     CXXFLAGS += -DLIBCXX_BUILDING_LIBCXXABI
diff --git a/boards/xtensa/esp32/esp32-devkitc/scripts/Make.defs b/boards/xtensa/esp32/esp32-devkitc/scripts/Make.defs
index eca5164631..5d324576de 100644
--- a/boards/xtensa/esp32/esp32-devkitc/scripts/Make.defs
+++ b/boards/xtensa/esp32/esp32-devkitc/scripts/Make.defs
@@ -61,7 +61,6 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
   ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing
 endif
 
-ARCHCXXFLAGS += -std=c++17
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
 ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic
diff --git a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/Make.defs b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/Make.defs
index 244cc754a7..4e006e736d 100644
--- a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/Make.defs
+++ b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/Make.defs
@@ -61,7 +61,6 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
   ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing
 endif
 
-ARCHCXXFLAGS += -std=c++17
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
 ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic
diff --git a/boards/xtensa/esp32/esp32-wrover-kit/scripts/Make.defs b/boards/xtensa/esp32/esp32-wrover-kit/scripts/Make.defs
index 4433a30800..3e636aecc6 100644
--- a/boards/xtensa/esp32/esp32-wrover-kit/scripts/Make.defs
+++ b/boards/xtensa/esp32/esp32-wrover-kit/scripts/Make.defs
@@ -61,7 +61,6 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
   ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing
 endif
 
-ARCHCXXFLAGS += -std=c++17
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
 ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic
diff --git a/boards/xtensa/esp32/ttgo_lora_esp32/scripts/Make.defs b/boards/xtensa/esp32/ttgo_lora_esp32/scripts/Make.defs
index 6483c7b40c..7d19c00574 100644
--- a/boards/xtensa/esp32/ttgo_lora_esp32/scripts/Make.defs
+++ b/boards/xtensa/esp32/ttgo_lora_esp32/scripts/Make.defs
@@ -61,7 +61,6 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
   ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing
 endif
 
-ARCHCXXFLAGS += -std=c++17
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
 ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic
diff --git a/boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs b/boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs
index 4ade769cb7..13c08a47f3 100644
--- a/boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs
+++ b/boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs
@@ -42,7 +42,6 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
   ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing
 endif
 
-ARCHCXXFLAGS += -std=c++17
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
 ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic
diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/scripts/Make.defs b/boards/xtensa/esp32s3/esp32s3-devkit/scripts/Make.defs
index 0e4fe1d403..b53941c826 100644
--- a/boards/xtensa/esp32s3/esp32s3-devkit/scripts/Make.defs
+++ b/boards/xtensa/esp32s3/esp32s3-devkit/scripts/Make.defs
@@ -32,7 +32,6 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
   ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce
 endif
 
-ARCHCXXFLAGS += -std=c++17
 ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
 ARCHWARNINGSXX = -Wall -Wshadow -Wundef
 ARCHPICFLAGS = -fpic


[incubator-nuttx] 01/05: libxx: Always build libcxx with -std=c++17

Posted by gu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit c1e5ba4602fe6a18f2443dd803b64fcfb20d7254
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat Apr 30 03:41:01 2022 +0800

    libxx: Always build libcxx with -std=c++17
    
    since the implementation of barrier require
    the aligned new which is defined in C++ 17
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 libs/libxx/libcxx.defs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/libxx/libcxx.defs b/libs/libxx/libcxx.defs
index 8ce3667c8e..c79a5eb82c 100644
--- a/libs/libxx/libcxx.defs
+++ b/libs/libxx/libcxx.defs
@@ -45,7 +45,7 @@ distclean::
 	$(Q) $(DIRUNLINK) $(TOPDIR)/include/libcxx
 	$(call DELDIR, libcxx)
 
-CXXFLAGS += ${shell $(DEFINE) "$(CC)" _LIBCPP_BUILDING_LIBRARY}
+CXXFLAGS += -std=c++17 ${shell $(DEFINE) "$(CC)" _LIBCPP_BUILDING_LIBRARY}
 
 ifeq ($(CONFIG_LIBSUPCXX), y)
 CXXFLAGS += ${shell $(DEFINE) "$(CC)" __GLIBCXX__}


[incubator-nuttx] 05/05: tools/ci: Enable libcxx test config

Posted by gu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit baf852ff4b07d4adc2a29aaaf188017b6b955ca3
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Apr 29 22:41:16 2022 +0800

    tools/ci: Enable libcxx test config
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 tools/ci/testlist/arm-02.dat | 3 ---
 tools/ci/testlist/arm-11.dat | 2 --
 2 files changed, 5 deletions(-)

diff --git a/tools/ci/testlist/arm-02.dat b/tools/ci/testlist/arm-02.dat
index c609e75503..aa50983639 100644
--- a/tools/ci/testlist/arm-02.dat
+++ b/tools/ci/testlist/arm-02.dat
@@ -1,4 +1 @@
 /arm/[i-k]*,CONFIG_ARMV7M_TOOLCHAIN_GNU_EABI
--imxrt1050-evk:libcxxtest
--imxrt1060-evk:libcxxtest
--imxrt1064-evk:libcxxtest
diff --git a/tools/ci/testlist/arm-11.dat b/tools/ci/testlist/arm-11.dat
index 46cef148a7..65105e87c1 100644
--- a/tools/ci/testlist/arm-11.dat
+++ b/tools/ci/testlist/arm-11.dat
@@ -1,6 +1,4 @@
 /arm/stm32/stm32f4discovery,CONFIG_ARMV7M_TOOLCHAIN_GNU_EABI
--stm32f4discovery:cxxtest
--stm32f4discovery:testlibcxx
 -stm32f4discovery:winbuild
 
 /arm/stm32/stm32ldiscovery,CONFIG_ARMV7M_TOOLCHAIN_GNU_EABI