If we're building an offloading compiler, always enable the LTO front end.

* configure.ac [--enable-as-accelerator-for] (enable_languages):
	Make sure it contains lto.
	* configure: Regenerate.

From-SVN: r220838
This commit is contained in:
Thomas Schwinge 2015-02-20 10:40:52 +01:00 committed by Thomas Schwinge
parent cb2d884d7d
commit 426c1eb04b
3 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2015-02-20 Thomas Schwinge <thomas@codesourcery.com>
* configure.ac [--enable-as-accelerator-for] (enable_languages):
Make sure it contains lto.
* configure: Regenerate.
2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
* configure: Regenerate.

8
configure vendored
View File

@ -6218,6 +6218,14 @@ if test -d ${srcdir}/gcc; then
fi
fi
# If we're building an offloading compiler, add the LTO front end.
if test x"$enable_as_accelerator_for" != x ; then
case ,${enable_languages}, in
*,lto,*) ;;
*) enable_languages="${enable_languages},lto" ;;
esac
fi
missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
potential_languages=,c,

View File

@ -1918,6 +1918,14 @@ if test -d ${srcdir}/gcc; then
fi
fi
# If we're building an offloading compiler, add the LTO front end.
if test x"$enable_as_accelerator_for" != x ; then
case ,${enable_languages}, in
*,lto,*) ;;
*) enable_languages="${enable_languages},lto" ;;
esac
fi
missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
potential_languages=,c,