[llvm-branch-commits] [cfe-branch] r80471 - /cfe/branches/Apple/leeloo/Makefile

Daniel Dunbar daniel at zuster.org
Sat Aug 29 20:59:16 PDT 2009


Author: ddunbar
Date: Sat Aug 29 22:59:15 2009
New Revision: 80471

URL: http://llvm.org/viewvc/llvm-project?rev=80471&view=rev
Log:
Add ENABLE_ASSERTIONS make variable, for enabling assertions in Apple style
build.

Also, enable building with PIC, since we are building dylibs now.

Modified:
    cfe/branches/Apple/leeloo/Makefile

Modified: cfe/branches/Apple/leeloo/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/leeloo/Makefile?rev=80471&r1=80470&r2=80471&view=diff

==============================================================================
--- cfe/branches/Apple/leeloo/Makefile (original)
+++ cfe/branches/Apple/leeloo/Makefile Sat Aug 29 22:59:15 2009
@@ -7,14 +7,21 @@
 UserType              = Developer
 ToolType              = Commands
 Install_Prefix	      = /Developer/usr
+
+# Default is build assertions disabled.
+ifndef ENABLE_ASSERTIONS
+Assertions_Configure_Flag = --disable-assertions
+else
+Assertions_Configure_Flag = --enable-assertions
+endif
+
 Extra_Configure_Flags = --enable-targets=x86 \
 			--enable-optimized \
-			--disable-assertions \
+			$(Assertions_Configure_Flag) \
 			--with-extra-options='-g -DDISABLE_SMART_POINTERS' \
-			--disable-pic \
 			--disable-doxygen \
 			$(HOST_TARGET_FLAGS)
-Extra_CC_Flags        = -mdynamic-no-pic
+
 GnuAfterInstall       = post-install install-plist
 
 # It's a GNU Source project





More information about the llvm-branch-commits mailing list