summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-03-21 22:13:45 +0000
committerSam James <sam@gentoo.org>2023-03-21 22:13:45 +0000
commit970f09a488afafe27152255d4343ff59acc94415 (patch)
treead2bc6a94b423c941d6c20b2b69e0af9b954428f
parentsys-devel/gcc: don't set *DEPEND for cross builds (diff)
downloadgentoo-970f09a488afafe27152255d4343ff59acc94415.tar.gz
gentoo-970f09a488afafe27152255d4343ff59acc94415.tar.bz2
gentoo-970f09a488afafe27152255d4343ff59acc94415.zip
toolchain.eclass: disable LTO for nvptx-none target
It doesn't support LTO and fails in stage1 crossdev. Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 4 insertions, 0 deletions
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