Skip to content

Commit 79bda31

Browse files
committed
picolibc: Add io-long-long=true and printf-small-ultoa=true
The first option ensures that long long values will be displayed correctly with either float or integer printf variants. To mitigate memory used by this, the printf-small-ultoa option avoids pulling in soft division code for long long types. There's a new 'minimal' variant for space-sensitive applications; that version does not get long long support with this change. Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent 0bd9594 commit 79bda31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configs/common.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ CT_PICOLIBC_SRC_CUSTOM=y
7272
CT_PICOLIBC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/picolibc"
7373
CT_LIBC_PICOLIBC_GLOBAL_ATEXIT=y
7474
CT_LIBC_PICOLIBC_EXTRA_SECTIONS=y
75-
CT_LIBC_PICOLIBC_EXTRA_CONFIG_ARRAY="-Dthread-local-storage=auto -Derrno-function=zephyr -Dsysroot-install=true -Dsysroot-install-skip-checks=true"
75+
CT_LIBC_PICOLIBC_EXTRA_CONFIG_ARRAY="-Dthread-local-storage=auto -Derrno-function=zephyr -Dsysroot-install=true -Dsysroot-install-skip-checks=true -Dio-long-long=true -Dprintf-small-ultoa=true"

0 commit comments

Comments
 (0)