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

Side by Side Diff: Makefile.rules

Issue 945553002: Allow LLVM TOOLS_ONLY builds w/ subzero, localize noirt/srpc (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: rebase Created 5 years, 9 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 | tools/Makefile » ('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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 ifeq ($(RC_XBS),YES) 660 ifeq ($(RC_XBS),YES)
661 TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/ll vm-lto.XXXXXX) 661 TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/ll vm-lto.XXXXXX)
662 LD.Flags += -Wl,-object_path_lto -Wl,$(TempFile) 662 LD.Flags += -Wl,-object_path_lto -Wl,$(TempFile)
663 endif 663 endif
664 endif 664 endif
665 endif 665 endif
666 666
667 #@LOCALMOD-BEGIN 667 #@LOCALMOD-BEGIN
668 ifeq ($(PNACL_BROWSER_TRANSLATOR),1) 668 ifeq ($(PNACL_BROWSER_TRANSLATOR),1)
669 CPP.Flags += -DPNACL_BROWSER_TRANSLATOR 669 CPP.Flags += -DPNACL_BROWSER_TRANSLATOR
670 # NOTE: we specify --noirt to tell the driver that we should link
671 # against private (non-stable, non-IRT) libraries for the
672 # sandboxed translator. This could have been specified directly,
673 # except that LLVM slips in -lpthread elsewhere in the build system,
674 # and we need it to use -lpthread_private instead.
675 LIBS += -Wl,--noirt -lsrpc -limc_syscalls -lplatform -lgio -lpthread
676 ifeq ($(USE_TCMALLOC),1)
677 # Note: -ltcmalloc_minimal needs to stay last on the link line
678 LIBS += -ltcmalloc_minimal
679 CXX.Flags += -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -f no-builtin-free
680 C.Flags += -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno -builtin-free
681 endif
682 endif 670 endif
683 # @LOCALMOD-END 671 # @LOCALMOD-END
684 672
685 #---------------------------------------------------------- 673 #----------------------------------------------------------
686 # Options To Invoke Tools 674 # Options To Invoke Tools
687 #---------------------------------------------------------- 675 #----------------------------------------------------------
688 676
689 ifdef EXTRA_LD_OPTIONS 677 ifdef EXTRA_LD_OPTIONS
690 LD.Flags += $(EXTRA_LD_OPTIONS) 678 LD.Flags += $(EXTRA_LD_OPTIONS)
691 endif 679 endif
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 $(Echo) "ProjLibsPaths: " '$(ProjLibsPaths)' 2160 $(Echo) "ProjLibsPaths: " '$(ProjLibsPaths)'
2173 $(Echo) "ProjLibsOptions: " '$(ProjLibsOptions)' 2161 $(Echo) "ProjLibsOptions: " '$(ProjLibsOptions)'
2174 2162
2175 ### 2163 ###
2176 # Debugging 2164 # Debugging
2177 2165
2178 # General debugging rule, use 'make dbg-print-XXX' to print the 2166 # General debugging rule, use 'make dbg-print-XXX' to print the
2179 # definition, value and origin of XXX. 2167 # definition, value and origin of XXX.
2180 make-print-%: 2168 make-print-%:
2181 $(error PRINT: $(value $*) = "$($*)" (from $(origin $*))) 2169 $(error PRINT: $(value $*) = "$($*)" (from $(origin $*)))
OLDNEW
« no previous file with comments | « no previous file | tools/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698