|author||Stuart Hastings <firstname.lastname@example.org>||2009-10-22 17:22:37 +0000|
|committer||Stuart Hastings <email@example.com>||2009-10-22 17:22:37 +0000|
Trying again to tweak the top-level Makefile to facilitate an Apple-style build.
Now with Clang-compatibility. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84872 91177308-0d34-0410-b5e6-96231b3b80d8
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."