[99542] trunk/dports/lang/llvm-3.1/Portfile

phw at macports.org phw at macports.org
Fri Nov 9 07:34:19 PST 2012


Revision: 99542
          http://trac.macports.org//changeset/99542
Author:   phw at macports.org
Date:     2012-11-09 07:34:19 -0800 (Fri, 09 Nov 2012)
Log Message:
-----------
llvm-3.1: added variants "debugruntime"

Modified Paths:
--------------
    trunk/dports/lang/llvm-3.1/Portfile

Modified: trunk/dports/lang/llvm-3.1/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.1/Portfile	2012-11-09 15:32:16 UTC (rev 99541)
+++ trunk/dports/lang/llvm-3.1/Portfile	2012-11-09 15:34:19 UTC (rev 99542)
@@ -4,7 +4,7 @@
 PortGroup select        1.0
 
 set llvm_version        3.1
-revision                4
+revision                5
 name                    llvm-${llvm_version}
 subport                 clang-${llvm_version} {}
 set suffix              mp-${llvm_version}
@@ -151,6 +151,16 @@
     configure.args-append --enable-assertions
 }
 
+variant debugruntime description "Enable debug informations. Disables optimisations" {
+    configure.args-delete --disable-debug-symbols
+    configure.args-delete --disable-debug-runtime
+    configure.args-delete --enable-optimized
+
+    configure.args-append --enable-debug-runtime
+    configure.args-append --enable-debug-symbols
+    configure.args-append --disable-optimized
+}
+
 platform darwin {
     if {${build_arch} == "i386" } {
         configure.pre_args-append --build=i686-apple-darwin${os.major}
@@ -283,6 +293,11 @@
         set pythonverdot 2.7
     }
 
+
+    variant debug {
+    }
+
+
     variant analyzer description {Install clang static analyzer} {
         if {[string equal "${pythonver}" ""]} {
             ui_error "You mush select a python variant to use the clang static analyzer (+analyzer)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121109/2fb5ecfa/attachment.html>


More information about the macports-changes mailing list