summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/cc/gcc.in2
-rw-r--r--config/comp_libs/picolibc.in (renamed from config/libc/picolibc.in)26
2 files changed, 18 insertions, 10 deletions
diff --git a/config/cc/gcc.in b/config/cc/gcc.in
index 849b1ad..9d9b692 100644
--- a/config/cc/gcc.in
+++ b/config/cc/gcc.in
@@ -1,6 +1,6 @@
# GCC options
-## select CC_SUPPORT_CXX if !LIBC_NONE
+## select CC_SUPPORT_CXX
## select CC_SUPPORT_FORTRAN
## select CC_SUPPORT_JAVA if !GCC_7_or_later && OBSOLETE
## select CC_SUPPORT_ADA
diff --git a/config/libc/picolibc.in b/config/comp_libs/picolibc.in
index cc1d4d1..cb7a1e4 100644
--- a/config/libc/picolibc.in
+++ b/config/comp_libs/picolibc.in
@@ -1,19 +1,26 @@
# picolibc options
## depends on BARE_METAL && CONFIGURE_has_meson && CONFIGURE_has_ninja
-## select LIBC_SUPPORT_THREADS_NATIVE
-
-## select CC_CORE_PASSES_NEEDED if CANADIAN
-## select CC_CORE_PASS_2_NEEDED if ! CANADIAN
+## help This option adds Picolibc to an existing configuration which may have
+## help a C library, allowing you to install both and select between them
+## help when compiling applications using the toolchain
+## help
## help Picolibc is a C library intended for use on embedded systems. It is a
## help conglomeration of several library parts, all under BSD-compatible software
-## help licenses that make them easily usable on embedded products. Picolibc
-## help is only available in source form. It can be compiled for a wide
-## help array of processors, and will usually work on any architecture with
-## help the addition of a few low-level routines.
+## help licenses that make them easily usable on embedded products.
+
+config LIBC_PICOLIBC_GCC_LIBSTDCXX
+ bool
+ prompt "Compile libstdc++ picolibc variant"
+ default y
+ depends on CC_LANG_CXX
+ help
+ This option compiles an additional target libstdc++ for use with
+ picolibc. This version is linked when "--specs=picolibcpp.specs"
+ is specified.
-config PICOLIBC_CXA_ATEXIT
+config LIBC_PICOLIBC_CXA_ATEXIT
def_bool y
select LIBC_PROVIDES_CXA_ATEXIT
@@ -75,6 +82,7 @@ config LIBC_PICOLIBC_MULTITHREAD
config LIBC_PICOLIBC_RETARGETABLE_LOCKING
bool
prompt "Enable retargetable locking"
+ default y
help
Enable retargetable locking to allow the operating system to override
the dummy lock functions defined within picolibc.