summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-06 06:30:15 +0000
committerChris Lattner <sabre@nondot.org>2006-04-06 06:30:15 +0000
commitd81eba56d79a15f92d6c3f6a8c0badbc5a505e0a (patch)
tree876332fe17f08e2e72130956645f6a870c1028d0
parent695e45c25231137d3a2996cd11d81e618c6a1f67 (diff)
downloadbcm5719-llvm-d81eba56d79a15f92d6c3f6a8c0badbc5a505e0a.tar.gz
bcm5719-llvm-d81eba56d79a15f92d6c3f6a8c0badbc5a505e0a.zip
Add support for building the LLVM libraries and tools as a Mac OS/X
universal binary, by specifying UNIVERSAL=1 on the make command line. llvm-svn: 27447
-rw-r--r--llvm/Makefile.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules
index 0144d8dea23..3449d3eadf7 100644
--- a/llvm/Makefile.rules
+++ b/llvm/Makefile.rules
@@ -360,6 +360,13 @@ ifeq ($(OS),HP-UX)
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
endif
+# If we are building a universal binary on Mac OS/X, pass extra options. This is
+# useful to people that want to link the LLVM libraries into their universal apps.
+ifdef UNIVERSAL
+ CompileCommonOpts += -arch i386 -arch ppc -isysroot /Developer/SDKs/MACOSX10.4u.sdk/
+ DISABLE_AUTO_DEPENDENCIES=1
+endif
+
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
# All -I flags should go here, so that they don't confuse llvm-config.
OpenPOWER on IntegriCloud