aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2015-02-20 10:40:52 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2015-02-20 10:40:52 +0100
commit426c1eb04bf1549ab72e35cb49cac0a5a36fb83b (patch)
tree77904792916e9ffb74e8ac21c018588bc81b1459 /configure
parentcb2d884d7d2b5fe83aba42f1387542b50d5f06b1 (diff)
downloadgcc-426c1eb04bf1549ab72e35cb49cac0a5a36fb83b.zip
gcc-426c1eb04bf1549ab72e35cb49cac0a5a36fb83b.tar.gz
gcc-426c1eb04bf1549ab72e35cb49cac0a5a36fb83b.tar.bz2
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-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index f20a6ab..fcfe44f 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,