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 --- Makefile.rules | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile.rules') diff --git a/Makefile.rules b/Makefile.rules index 79ee0e8486..ade5f1a8f7 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 -- cgit v1.2.3