gcc: Disable zstd for canadian builds

We don't currently bundle zstd so when performing a canadian build we
need to tell GCC not to enable zstd support for lto otherwise it might
decide to enable it based on the package being installed on the build
machine.

Fixes #1718
Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
Chris Packham 2022-05-30 20:50:52 +12:00
parent b510e062c4
commit f6d3f498f0

View File

@ -177,10 +177,9 @@ config CC_GCC_USE_LTO
config CC_GCC_LTO_ZSTD
tristate
prompt "Support LTO compression with zstd"
default m
default m if !CANADIAN && !STATIC_TOOLCHAIN
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