mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-16 07:26:38 +00:00
Merge pull request #1589 from cpackham/zstd
cc/gcc: Add options for zstd usage
This commit is contained in:
commit
4de586cd2e
@ -179,6 +179,25 @@ config CC_GCC_USE_LTO
|
||||
help
|
||||
Enable the Link Time Optimisations.
|
||||
|
||||
config CC_GCC_LTO_ZSTD
|
||||
tristate
|
||||
prompt "Support LTO compression with zstd"
|
||||
default m
|
||||
depends on CC_GCC_USE_LTO
|
||||
depends on GCC_10_or_later
|
||||
depends on ! STATIC_TOOLCHAIN
|
||||
help
|
||||
Support zstd compression for LTO object files. This will require
|
||||
libzstd to be installed when using the toolchain
|
||||
|
||||
Option | ZSTD use | Associated ./configure switch
|
||||
---------+--------------------+--------------------------------
|
||||
Y | forcibly used | --with-zstd
|
||||
M | auto | (none, ./configure decides)
|
||||
N | forcibly not used | --without-zstd
|
||||
|
||||
If unsure, say 'M'
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
comment "Settings for libraries running on target"
|
||||
|
||||
|
@ -1130,6 +1130,11 @@ do_gcc_backend() {
|
||||
else
|
||||
extra_config+=("--disable-lto")
|
||||
fi
|
||||
case "${CT_CC_GCC_LTO_ZSTD}" in
|
||||
y) extra_config+=("--with-zstd");;
|
||||
m) ;;
|
||||
*) extra_config+=("--without-zstd");;
|
||||
esac
|
||||
|
||||
if [ ${#host_libstdcxx_flags[@]} -ne 0 ]; then
|
||||
extra_config+=("--with-host-libstdcxx=${host_libstdcxx_flags[*]}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user