mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-03-22 20:15:31 +00:00
libc/musl: Add config option for extra developer warnings
This commit adds a configuration knob for enabling extra developer warnings to be enabled during the musl-libc build. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
9dd63da071
commit
6bef0b4d24
@ -7,6 +7,12 @@ config LIBC_MUSL_DEBUG
|
||||
This option enables debugging information, this will increase the size of
|
||||
the resulting library.
|
||||
|
||||
config LIBC_MUSL_WARNINGS
|
||||
bool
|
||||
prompt "Build with recommended warnings flags"
|
||||
help
|
||||
Build musl-libc with extra warnings, useful for musl-libc development.
|
||||
|
||||
choice
|
||||
prompt "How to optimize musl-libc"
|
||||
default LIBC_MUSL_OPTIMIZE_AUTO
|
||||
|
@ -50,6 +50,10 @@ do_libc_configure() {
|
||||
extra_config+=("--enable-debug")
|
||||
fi
|
||||
|
||||
if [ "${CT_LIBC_MUSL_WARNINGS}" = "y" ]; then
|
||||
extra_config+=("--enable-warnings")
|
||||
fi
|
||||
|
||||
extra_config+=( "--enable-optimize=${CT_LIBC_MUSL_OPTIMIZE}" )
|
||||
|
||||
# NOTE: musl handles the build/host/target a little bit differently
|
||||
|
Loading…
x
Reference in New Issue
Block a user