From 1baa38147a62cb9e905c8229098be2e3a7627032 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 25 Jun 2013 01:12:25 +0000 Subject: Add an autoconf option for turning on -gsplit-dwarf by default when building llvm. This saves quite a bit of time and space when linking. Please report any problems via bugzilla. Caveats: a) This will only work on linux b) This requires a fairly new binutils c) This requires a fairly new gdb git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184808 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'autoconf') diff --git a/autoconf/configure.ac b/autoconf/configure.ac index ad1fd1c632..393bd6a85a 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -510,6 +510,19 @@ case "$enableval" in *) AC_MSG_ERROR([Invalid setting for --enable-cxx11. Use "yes" or "no"]) ;; esac +dnl --enable-fission : check whether or not to use -gsplit-dwarf on the command +dnl line +AC_ARG_ENABLE(split-dwarf, + AS_HELP_STRING([--enable-split-dwarf], + [Use split-dwarf if available (default is NO)]),, + enableval=default) +case "$enableval" in + yes) AC_SUBST(ENABLE_SPLIT_DWARF,[1]) ;; + no) AC_SUBST(ENABLE_SPLIT_DWARF,[0]) ;; + default) AC_SUBST(ENABLE_SPLIT_DWARF,[0]);; + *) AC_MSG_ERROR([Invalid setting for --enable-split-dwarf. Use "yes" or "no"]) ;; +esac + dnl --enable-clang-arcmt: check whether to enable clang arcmt clang_arcmt="yes" AC_ARG_ENABLE(clang-arcmt, -- cgit v1.2.3