Skip to content

Commit

Permalink
configs: common: activate options for c11 and c++11 threads
Browse files Browse the repository at this point in the history
Add support for c11 and c++11 threads, mutexes,
condition variables, etc.

Signed-off-by: Chris Friedt <[email protected]>
  • Loading branch information
cfriedt committed Feb 11, 2024
1 parent 62a5a0b commit 194035e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion configs/common.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb"
# GCC
CT_GCC_SRC_CUSTOM=y
CT_GCC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gcc"
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array"
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array --enable-libstdcxx-threads"
CT_CC_LANG_CXX=y

# Common for Newlib, Newlib-nano, and Picolibc
CT_LIBC_SUPPORT_THREADS_C11=y

# Newlib
CT_NEWLIB_SRC_CUSTOM=y
CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib"
Expand Down
2 changes: 1 addition & 1 deletion crosstool-ng
2 changes: 1 addition & 1 deletion gcc

0 comments on commit 194035e

Please sign in to comment.