diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-01-06 21:54:35 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-01-06 21:54:35 +0000 |
commit | 9e7aba2739fb3edb3ddcf04c5d36c7c1cccb0581 (patch) | |
tree | 1f93e2efb67bb3aef4d2d6dcf36a61964b5f2f86 /Makefile.rules | |
parent | a31d1d7aea6db0f72b9dfb14fbf4f56c0dcaba84 (diff) | |
download | external_llvm-9e7aba2739fb3edb3ddcf04c5d36c7c1cccb0581.zip external_llvm-9e7aba2739fb3edb3ddcf04c5d36c7c1cccb0581.tar.gz external_llvm-9e7aba2739fb3edb3ddcf04c5d36c7c1cccb0581.tar.bz2 |
Modify Makefile.rules to allow makefiles to prepend to C.Flags and
fiends. Change Makefile.ocaml to not touch CFLAGS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile.rules b/Makefile.rules index e3a1009..2cdb63e 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -210,9 +210,9 @@ endif ifdef ENABLE_PROFILING BuildMode := Profile - CXX.Flags := $(OPTIMIZE_OPTION) -pg -g - C.Flags := $(OPTIMIZE_OPTION) -pg -g - LD.Flags := $(OPTIMIZE_OPTION) -pg -g + CXX.Flags += $(OPTIMIZE_OPTION) -pg -g + C.Flags += $(OPTIMIZE_OPTION) -pg -g + LD.Flags += $(OPTIMIZE_OPTION) -pg -g KEEP_SYMBOLS := 1 else ifeq ($(ENABLE_OPTIMIZED),1) @@ -229,14 +229,14 @@ else EXTRA_OPTIONS += -fstrict-aliasing endif - CXX.Flags := $(OPTIMIZE_OPTION) $(OmitFramePointer) - C.Flags := $(OPTIMIZE_OPTION) $(OmitFramePointer) - LD.Flags := $(OPTIMIZE_OPTION) + CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) + C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) + LD.Flags += $(OPTIMIZE_OPTION) else BuildMode := Debug - CXX.Flags := -g - C.Flags := -g - LD.Flags := -g + CXX.Flags += -g + C.Flags += -g + LD.Flags += -g KEEP_SYMBOLS := 1 endif endif |