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 12, 2024
1 parent f586856 commit 0706d26
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,8 +15,11 @@ 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"
# 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-threads"
CT_CC_LANG_CXX=y
CT_THREADS_C11=y

# Newlib
CT_NEWLIB_SRC_CUSTOM=y
Expand Down
2 changes: 1 addition & 1 deletion crosstool-ng
2 changes: 1 addition & 1 deletion gcc
2 changes: 1 addition & 1 deletion newlib

0 comments on commit 0706d26

Please sign in to comment.