Skip to content

Commit

Permalink
As far as I know no linker needs or wants the -g flag.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184800 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
echristo committed Jun 25, 2013
1 parent ea64122 commit a619be8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -287,21 +287,18 @@ ifeq ($(ENABLE_OPTIMIZED),1)
BuildMode := $(BuildMode)+Debug
CXX.Flags += -g
C.Flags += -g
LD.Flags += -g
KEEP_SYMBOLS := 1
endif
else
ifdef NO_DEBUG_SYMBOLS
BuildMode := Unoptimized
CXX.Flags +=
C.Flags +=
LD.Flags +=
KEEP_SYMBOLS := 1
else
BuildMode := Debug
CXX.Flags += -g
C.Flags += -g
LD.Flags += -g
KEEP_SYMBOLS := 1
endif
endif
Expand All @@ -324,7 +321,7 @@ ifeq ($(ENABLE_PROFILING),1)
BuildMode := $(BuildMode)+Profile
CXX.Flags := $(filter-out -fomit-frame-pointer,$(CXX.Flags)) -pg -g
C.Flags := $(filter-out -fomit-frame-pointer,$(C.Flags)) -pg -g
LD.Flags := $(filter-out -fomit-frame-pointer,$(LD.Flags)) -pg -g
LD.Flags := $(filter-out -fomit-frame-pointer,$(LD.Flags)) -pg
KEEP_SYMBOLS := 1
endif

Expand Down

0 comments on commit a619be8

Please sign in to comment.