Diffstat (limited to 'Makefile')
1 files changed, 12 insertions, 0 deletions
@@ -19,6 +19,12 @@ LEVEL := .
# When cross-compiling, there are some things (tablegen) that need to
# be build for the build system first.
+# If "RC_ProjectName" exists in the environment, and its value is
+# "llvmCore", then this is an "Apple-style" build; search for
+# "Apple-style" in the comments for more info. Anything else is a
+# normal build.
+ifneq ($(RC_ProjectName),llvmCore) # Normal build (not "Apple-style").
DIRS := lib/System lib/Support utils
@@ -211,3 +217,9 @@ happiness: update all check unittests
+else # Building "Apple-style."
+# In an Apple-style build, once configuration is done, lines marked
+# "Apple-style" are removed with sed! Please don't remove these!
+# Look for the string "Apple-style" in utils/buildit/build_llvm.
+include $(shell find . -name GNUmakefile) # Building "Apple-style."
+endif # Building "Apple-style."