diff options
author | Jack Howarth <howarth@bromo.med.uc.edu> | 2010-09-03 15:49:02 -0400 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2010-09-03 15:49:02 -0400 |
commit | bb79486c5531faaa25c959607a56236c62c0d559 (patch) | |
tree | 12613bd0a74ebab231fdcc3df3d06933df60630e /configure | |
parent | 65a9ca823e1aa1996badc22db84b8641d1487e61 (diff) | |
download | gcc-bb79486c5531faaa25c959607a56236c62c0d559.zip gcc-bb79486c5531faaa25c959607a56236c62c0d559.tar.gz gcc-bb79486c5531faaa25c959607a56236c62c0d559.tar.bz2 |
configure.ac: Enable LTO by default on Darwin.
2010-09-03 Jack Howarth <howarth@bromo.med.uc.edu>
* configure.ac: Enable LTO by default on Darwin.
* configure: Regenerate.
From-SVN: r163839
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -6670,8 +6670,11 @@ to specify its location." "$LINENO" 5 fi else if test x"$default_enable_lto" = x"yes" ; then - # On non-ELF platforms, LTO must be explicitly enabled. - enable_lto=no + case $target in + *-apple-darwin*) ;; + # On other non-ELF platforms, LTO must be explicitly enabled. + *) enable_lto=no ;; + esac else # Apart from ELF platforms, only Windows supports LTO so far. It # would also be nice to check the binutils support, but we don't @@ -6680,7 +6683,6 @@ else # -flto it won't be needed until after installation anyway. case $target in *-cygwin*|*-mingw*) ;; - *-apple-darwin*) ;; *) if test x"$enable_lto" = x"yes"; then as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 fi |