Skip to content

Commit

Permalink
Revert "configs: common: enable c++11 thread support via c11 threads"
Browse files Browse the repository at this point in the history
This reverts commit 8dee616 because it
causes incompatibility with prior Zephyr releases which we do not want
at this point.

The relevant GCC patches should be reworked to be more self-contained
and maintain compatibility with prior Zephyr releases as noted in the
GitHub issue zephyrproject-rtos#751.

Signed-off-by: Stephanos Ioannidis <[email protected]>
  • Loading branch information
stephanosio committed May 6, 2024
1 parent c744a06 commit 8125394
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion configs/aarch64-zephyr-elf.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ CT_ARCH_64=y
CT_TARGET_VENDOR="zephyr"
CT_TARGET_CFLAGS="-moverride=tune=no_ldp_stp_qregs -ftls-model=local-exec"
CT_MULTILIB=y
CT_GDB_CROSS_EXTRA_CONFIG_ARRAY="--enable-targets=arm-zephyr-eabi --enable-threads=c11 --enable-libstdcxx-time=c11 --enable-libstdcxx-threads"
CT_GDB_CROSS_EXTRA_CONFIG_ARRAY="--enable-targets=arm-zephyr-eabi"
5 changes: 1 addition & 4 deletions configs/common.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb"
# GCC
CT_GCC_SRC_CUSTOM=y
CT_GCC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gcc"
# NOTE: --enable-threads=c11 is still necessary here to override the value inherited by
# build/cc/gcc.sh with baremetal "mode"
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array --enable-threads=c11 --enable-libstdcxx-time=c11 --enable-libstdcxx-threads"
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array"
CT_CC_LANG_CXX=y
CT_THREADS_C11=y

# Newlib
CT_NEWLIB_SRC_CUSTOM=y
Expand Down
2 changes: 1 addition & 1 deletion configs/x86_64-zephyr-elf.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ CT_TARGET_VENDOR="zephyr"
CT_TARGET_CFLAGS="-ftls-model=local-exec"
CT_MULTILIB=y
CT_BINUTILS_EXTRA_CONFIG_ARRAY="--enable-targets=x86_64-pep"
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array --with-cpu-32=i586 --with-arch-32=i586 --with-cpu-64=generic --with-arch-64=x86-64 --enable-threads=c11 --enable-libstdcxx-time=c11 --enable-libstdcxx-threads"
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array --with-cpu-32=i586 --with-arch-32=i586 --with-cpu-64=generic --with-arch-64=x86-64"

0 comments on commit 8125394

Please sign in to comment.