[llvm-commits] CVS: llvm/Makefile.rules

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 5 23:30:28 PDT 2006



Changes in directory llvm:

Makefile.rules updated: 1.354 -> 1.355
---
Log message:

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.


---
Diffs of the changes:  (+7 -0)

 Makefile.rules |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.354 llvm/Makefile.rules:1.355
--- llvm/Makefile.rules:1.354	Fri Mar 24 01:36:57 2006
+++ llvm/Makefile.rules	Thu Apr  6 01:30:15 2006
@@ -360,6 +360,13 @@
   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.






More information about the llvm-commits mailing list