Select an ARM-hosted cross build with a separate makefile target instead of

a magic project name.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bob Wilson
2010-05-05 22:22:40 +00:00
parent 676b2dfd27
commit 7d2552135d
2 changed files with 31 additions and 29 deletions

View File

@@ -49,6 +49,9 @@ endif
# Default to not install libLTO.dylib.
INSTALL_LIBLTO := no
# Default to do a native build, not a cross-build for an ARM host.
ARM_HOSTED_BUILD := no
ifndef RC_ProjectSourceVersion
RC_ProjectSourceVersion = 9999
endif
@@ -63,8 +66,12 @@ install: $(OBJROOT) $(SYMROOT) $(DSTROOT)
$(SRC)/utils/buildit/build_llvm "$(RC_ARCHS)" "$(TARGETS)" \
$(SRC) $(PREFIX) $(DSTROOT) $(SYMROOT) \
$(ENABLE_ASSERTIONS) $(LLVM_OPTIMIZED) $(INSTALL_LIBLTO) \
$(ARM_HOSTED_BUILD) \
$(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion)
EmbeddedHosted:
$(MAKE) ARM_HOSTED_BUILD=yes install
# installhdrs does nothing, because the headers aren't useful until
# the compiler is installed.
installhdrs:
@@ -113,4 +120,4 @@ clean:
$(OBJROOT) $(SYMROOT) $(DSTROOT):
mkdir -p $@
.PHONY: install installsrc clean
.PHONY: install installsrc clean EmbeddedHosted