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

Side by Side Diff: Makefile.rules

Issue 7730004: add llvm configure flags to enable/disable target OSes/Envs Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: Created 9 years, 4 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 | Makefile.config.in » ('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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 endif 311 endif
312 312
313 # If ENABLE_EXPENSIVE_CHECKS=1 is specified (make command line or 313 # If ENABLE_EXPENSIVE_CHECKS=1 is specified (make command line or
314 # configured), then enable expensive checks by defining the 314 # configured), then enable expensive checks by defining the
315 # appropriate preprocessor symbols. 315 # appropriate preprocessor symbols.
316 ifeq ($(ENABLE_EXPENSIVE_CHECKS),1) 316 ifeq ($(ENABLE_EXPENSIVE_CHECKS),1)
317 BuildMode := $(BuildMode)+Checks 317 BuildMode := $(BuildMode)+Checks
318 CPP.Defines += -D_GLIBCXX_DEBUG -DXDEBUG 318 CPP.Defines += -D_GLIBCXX_DEBUG -DXDEBUG
319 endif 319 endif
320 320
321 # Take the list of TARGET_OSES_TO_BUILD and generate preprocessor symbols
322 # indicating that the target OS is enabled.
323 CPP.Defines += $(patsubst %,-DLLVM_ENABLED_TARGET_OS_%,\
324 $(shell echo $(TARGET_OSES_TO_BUILD) | tr a-z A-Z))
325
326 # Take the list of TARGET_ENVS_TO_BUILD and generate preprocessor symbols
327 # indicating that the target environment is enabled.
328 CPP.Defines += $(patsubst %,-DLLVM_ENABLED_TARGET_ENV_%,\
329 $(shell echo $(TARGET_ENVS_TO_BUILD) | tr a-z A-Z))
330
321 # LOADABLE_MODULE implies several other things so we force them to be 331 # LOADABLE_MODULE implies several other things so we force them to be
322 # defined/on. 332 # defined/on.
323 ifdef LOADABLE_MODULE 333 ifdef LOADABLE_MODULE
324 SHARED_LIBRARY := 1 334 SHARED_LIBRARY := 1
325 LINK_LIBS_IN_SHARED := 1 335 LINK_LIBS_IN_SHARED := 1
326 endif 336 endif
327 337
328 ifdef SHARED_LIBRARY 338 ifdef SHARED_LIBRARY
329 ENABLE_PIC := 1 339 ENABLE_PIC := 1
330 PIC_FLAG = "(PIC)" 340 PIC_FLAG = "(PIC)"
(...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 $(Echo) "ProjLibsPaths: " '$(ProjLibsPaths)' 2283 $(Echo) "ProjLibsPaths: " '$(ProjLibsPaths)'
2274 $(Echo) "ProjLibsOptions: " '$(ProjLibsOptions)' 2284 $(Echo) "ProjLibsOptions: " '$(ProjLibsOptions)'
2275 2285
2276 ### 2286 ###
2277 # Debugging 2287 # Debugging
2278 2288
2279 # General debugging rule, use 'make dbg-print-XXX' to print the 2289 # General debugging rule, use 'make dbg-print-XXX' to print the
2280 # definition, value and origin of XXX. 2290 # definition, value and origin of XXX.
2281 make-print-%: 2291 make-print-%:
2282 $(error PRINT: $(value $*) = "$($*)" (from $(origin $*))) 2292 $(error PRINT: $(value $*) = "$($*)" (from $(origin $*)))
OLDNEW
« no previous file with comments | « no previous file | Makefile.config.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698