aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-06-25 01:12:25 +0000
committerEric Christopher <echristo@gmail.com>2013-06-25 01:12:25 +0000
commit1baa38147a62cb9e905c8229098be2e3a7627032 (patch)
tree7c35ce323d0ea5a45864dc5348bb2fd59f1c976e /autoconf
parent593fcb56b37857d64e58ac3be5277d3cfccb9492 (diff)
downloadexternal_llvm-1baa38147a62cb9e905c8229098be2e3a7627032.zip
external_llvm-1baa38147a62cb9e905c8229098be2e3a7627032.tar.gz
external_llvm-1baa38147a62cb9e905c8229098be2e3a7627032.tar.bz2
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
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index ad1fd1c..393bd6a 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,