diff options
author | Eric Christopher <echristo@gmail.com> | 2013-06-25 01:12:25 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-06-25 01:12:25 +0000 |
commit | 1baa38147a62cb9e905c8229098be2e3a7627032 (patch) | |
tree | 7c35ce323d0ea5a45864dc5348bb2fd59f1c976e /Makefile.rules | |
parent | 593fcb56b37857d64e58ac3be5277d3cfccb9492 (diff) |
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 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 79ee0e8486a..ade5f1a8f75 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -297,8 +297,13 @@ else KEEP_SYMBOLS := 1 else BuildMode := Debug + ifeq ($(ENABLE_SPLIT_DWARF), 1) + CXX.Flags += -gsplit-dwarf + C.Flags += -gsplit-dwarf + else CXX.Flags += -g C.Flags += -g + endif KEEP_SYMBOLS := 1 endif endif |