[llvm-branch-commits] [llvm-branch] r84876 - /llvm/branches/Apple/Leela/Makefile

Stuart Hastings stuart at apple.com
Thu Oct 22 10:31:46 PDT 2009


Author: stuart
Date: Thu Oct 22 12:31:46 2009
New Revision: 84876

URL: http://llvm.org/viewvc/llvm-project?rev=84876&view=rev
Log:
Trying again to tweak the top-level Makefile to facilitate an Apple-style build.
Now with Clang-compatibility.

Modified:
    llvm/branches/Apple/Leela/Makefile

Modified: llvm/branches/Apple/Leela/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/Makefile?rev=84876&r1=84875&r2=84876&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/Makefile (original)
+++ llvm/branches/Apple/Leela/Makefile Thu Oct 22 12:31:46 2009
@@ -19,7 +19,12 @@
 #
 # When cross-compiling, there are some things (tablegen) that need to
 # be build for the build system first.
-ifndef RC_ARCHS  # Normal build (not "Apple-style").
+
+# 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").
 ifeq ($(BUILD_DIRS_ONLY),1)
   DIRS := lib/System lib/Support utils
   OPTIONAL_DIRS :=
@@ -213,7 +218,8 @@
 .NOTPARALLEL:
 
 else # Building "Apple-style."
-# N.B. In an Apple-style build, once configuration is done, lines
-# marked "Apple-style" are removed with sed!  See utils/buildit/build_llvm.
-include utils/buildit/GNUmakefile # 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."





More information about the llvm-branch-commits mailing list