summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-12-25 15:45:59 +0100
committerMichał Górny <mgorny@gentoo.org>2023-12-26 15:02:09 +0100
commit2aea6c3ff2181ad96187e456a3307609fd288d4c (patch)
treec300543f72074afb4606334811eb24721116c688 /metadata/md5-cache/net-misc/wget-1.21.4
parentdev-libs/dynolog: remove Werror option (diff)
downloadgentoo-2aea6c3ff2181ad96187e456a3307609fd288d4c.tar.gz
gentoo-2aea6c3ff2181ad96187e456a3307609fd288d4c.tar.bz2
gentoo-2aea6c3ff2181ad96187e456a3307609fd288d4c.zip
toolchain-funcs.eclass: Add tc-is-lto function
Add a function to check whether the C compiler is using LTO. To determine this, we compile a dummy source unit. In the GCC case, we check whether the resulting object file contains ".gnu.lto*" sections. In the clang case, we check whether a valid LLVM bytecode file was output rather than a regular object. The goal of this change is to reduce the amount of USE=lto abuse, and have a consistent cross-package way of enabling LTO via setting appropriate CFLAGS and CXXFLAGS. Closes: https://github.com/gentoo/gentoo/pull/34470 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'metadata/md5-cache/net-misc/wget-1.21.4')
0 files changed, 0 insertions, 0 deletions