summaryrefslogtreecommitdiff
path: root/utils/buildit/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/buildit/GNUmakefile')
-rw-r--r--utils/buildit/GNUmakefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/buildit/GNUmakefile b/utils/buildit/GNUmakefile
index e0568d2f14..0f3b7ebe6b 100644
--- a/utils/buildit/GNUmakefile
+++ b/utils/buildit/GNUmakefile
@@ -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