diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2015-02-20 10:40:52 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2015-02-20 10:40:52 +0100 |
commit | 426c1eb04bf1549ab72e35cb49cac0a5a36fb83b (patch) | |
tree | 77904792916e9ffb74e8ac21c018588bc81b1459 /configure | |
parent | cb2d884d7d2b5fe83aba42f1387542b50d5f06b1 (diff) | |
download | gcc-426c1eb04bf1549ab72e35cb49cac0a5a36fb83b.tar.gz |
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
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure index f20a6abb845..fcfe44f4fd8 100755 --- a/configure +++ b/configure @@ -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, |