commit: 970f09a488afafe27152255d4343ff59acc94415
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 21 22:13:45 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 21 22:13:45 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=970f09a4
toolchain.eclass: disable LTO for nvptx-none target
It doesn't support LTO and fails in stage1 crossdev.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 2d7801259019..a973e7fd7811 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1164,6 +1164,10 @@ toolchain_src_configure() {
avr)
confgcc+=( --enable-shared --disable-threads )
;;
+ nvptx*)
+ # "LTO is not supported for this target"
+ confgcc+=( --disable-lto )
+ ;;
esac
if [[ -n ${needed_libc} ]] ; then