Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: Makefile.rules

Issue 7792066: [llvm] Conditionally include target intrinsics, based on --enable-target Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: cleanups Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | docs/TableGenFundamentals.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #===-- Makefile.rules - Common make rules for LLVM ---------*- Makefile -*--===# 1 #===-- Makefile.rules - Common make rules for LLVM ---------*- Makefile -*--===#
2 # 2 #
3 # The LLVM Compiler Infrastructure 3 # The LLVM Compiler Infrastructure
4 # 4 #
5 # This file is distributed under the University of Illinois Open Source 5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details. 6 # License. See LICENSE.TXT for details.
7 # 7 #
8 #===------------------------------------------------------------------------===# 8 #===------------------------------------------------------------------------===#
9 # 9 #
10 # This file is included by all of the LLVM makefiles. For details on how to use 10 # This file is included by all of the LLVM makefiles. For details on how to use
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 KEEP_SYMBOLS := 1 251 KEEP_SYMBOLS := 1
252 else 252 else
253 BuildMode := Debug 253 BuildMode := Debug
254 CXX.Flags += -g 254 CXX.Flags += -g
255 C.Flags += -g 255 C.Flags += -g
256 LD.Flags += -g 256 LD.Flags += -g
257 KEEP_SYMBOLS := 1 257 KEEP_SYMBOLS := 1
258 endif 258 endif
259 endif 259 endif
260 260
261 CPP.Defines += $(patsubst %,-DTARGET_ENABLED_%,\
262 $(shell echo $(TARGETS_TO_BUILD) | tr a-z A-Z))
263
261 ifeq ($(ENABLE_PROFILING),1) 264 ifeq ($(ENABLE_PROFILING),1)
262 BuildMode := $(BuildMode)+Profile 265 BuildMode := $(BuildMode)+Profile
263 CXX.Flags := $(filter-out -fomit-frame-pointer,$(CXX.Flags)) -pg -g 266 CXX.Flags := $(filter-out -fomit-frame-pointer,$(CXX.Flags)) -pg -g
264 C.Flags := $(filter-out -fomit-frame-pointer,$(C.Flags)) -pg -g 267 C.Flags := $(filter-out -fomit-frame-pointer,$(C.Flags)) -pg -g
265 LD.Flags := $(filter-out -fomit-frame-pointer,$(LD.Flags)) -pg -g 268 LD.Flags := $(filter-out -fomit-frame-pointer,$(LD.Flags)) -pg -g
266 KEEP_SYMBOLS := 1 269 KEEP_SYMBOLS := 1
267 endif 270 endif
268 271
269 #ifeq ($(ENABLE_VISIBILITY_INLINES_HIDDEN),1) 272 #ifeq ($(ENABLE_VISIBILITY_INLINES_HIDDEN),1)
270 # CXX.Flags += -fvisibility-inlines-hidden 273 # CXX.Flags += -fvisibility-inlines-hidden
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 Preprocess.C = $(CC) $(CPP.Flags) $(C.Flags) $(CPPFLAGS) \ 690 Preprocess.C = $(CC) $(CPP.Flags) $(C.Flags) $(CPPFLAGS) \
688 $(TargetCommonOpts) $(CompileCommonOpts) -E 691 $(TargetCommonOpts) $(CompileCommonOpts) -E
689 692
690 BCCompile.CXX = $(LLVMCXX) $(CPP.Flags) $(CXX.Flags) $(CXXFLAGS) $(CPPFLAGS) \ 693 BCCompile.CXX = $(LLVMCXX) $(CPP.Flags) $(CXX.Flags) $(CXXFLAGS) $(CPPFLAGS) \
691 $(TargetCommonOpts) $(CompileCommonOpts) 694 $(TargetCommonOpts) $(CompileCommonOpts)
692 695
693 ProgInstall = $(INSTALL) $(Install.StripFlag) -m 0755 696 ProgInstall = $(INSTALL) $(Install.StripFlag) -m 0755
694 ScriptInstall = $(INSTALL) -m 0755 697 ScriptInstall = $(INSTALL) -m 0755
695 DataInstall = $(INSTALL) -m 0644 698 DataInstall = $(INSTALL) -m 0644
696 699
700 # Tell TableGen which targets were enabled to do additional filtering.
701 TABLEGEN_TARGET_FLAGS = $(patsubst %,-DTARGET_%,\
702 $(shell echo $(TARGETS_TO_BUILD) | tr a-z A-Z))
703
697 # When compiling under Mingw/Cygwin, the tblgen tool expects Windows 704 # When compiling under Mingw/Cygwin, the tblgen tool expects Windows
698 # paths. In this case, the SYSPATH function (defined in 705 # paths. In this case, the SYSPATH function (defined in
699 # Makefile.config) transforms Unix paths into Windows paths. 706 # Makefile.config) transforms Unix paths into Windows paths.
700 TableGen = $(TBLGEN) -I $(call SYSPATH, $(PROJ_SRC_DIR)) \ 707 TableGen = $(TBLGEN) -I $(call SYSPATH, $(PROJ_SRC_DIR)) \
701 -I $(call SYSPATH, $(LLVM_SRC_ROOT)/include) \ 708 -I $(call SYSPATH, $(LLVM_SRC_ROOT)/include) \
702 -I $(call SYSPATH, $(PROJ_SRC_ROOT)/include) \ 709 -I $(call SYSPATH, $(PROJ_SRC_ROOT)/include) \
703 -I $(call SYSPATH, $(PROJ_SRC_ROOT)/lib/Target) 710 -I $(call SYSPATH, $(PROJ_SRC_ROOT)/lib/Target) \
711 $(TABLEGEN_TARGET_FLAGS)
704 712
705 Archive = $(AR) $(AR.Flags) 713 Archive = $(AR) $(AR.Flags)
706 LArchive = $(LLVMToolDir)/llvm-ar rcsf 714 LArchive = $(LLVMToolDir)/llvm-ar rcsf
707 ifdef RANLIB 715 ifdef RANLIB
708 Ranlib = $(RANLIB) 716 Ranlib = $(RANLIB)
709 else 717 else
710 Ranlib = ranlib 718 Ranlib = ranlib
711 endif 719 endif
712 720
713 AliasTool = ln -s 721 AliasTool = ln -s
(...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 $(Echo) "ProjLibsPaths: " '$(ProjLibsPaths)' 2281 $(Echo) "ProjLibsPaths: " '$(ProjLibsPaths)'
2274 $(Echo) "ProjLibsOptions: " '$(ProjLibsOptions)' 2282 $(Echo) "ProjLibsOptions: " '$(ProjLibsOptions)'
2275 2283
2276 ### 2284 ###
2277 # Debugging 2285 # Debugging
2278 2286
2279 # General debugging rule, use 'make dbg-print-XXX' to print the 2287 # General debugging rule, use 'make dbg-print-XXX' to print the
2280 # definition, value and origin of XXX. 2288 # definition, value and origin of XXX.
2281 make-print-%: 2289 make-print-%:
2282 $(error PRINT: $(value $*) = "$($*)" (from $(origin $*))) 2290 $(error PRINT: $(value $*) = "$($*)" (from $(origin $*)))
OLDNEW
« no previous file with comments | « no previous file | docs/TableGenFundamentals.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698