[131798] trunk/dports/lang

jeremyhu at macports.org jeremyhu at macports.org
Sun Jan 18 12:34:05 PST 2015


Revision: 131798
          https://trac.macports.org/changeset/131798
Author:   jeremyhu at macports.org
Date:     2015-01-18 12:34:05 -0800 (Sun, 18 Jan 2015)
Log Message:
-----------
llvm-3.[4567]: Speed up compilation time by not building unit tests

Modified Paths:
--------------
    trunk/dports/lang/llvm-3.4/Portfile
    trunk/dports/lang/llvm-3.5/Portfile
    trunk/dports/lang/llvm-3.6/Portfile
    trunk/dports/lang/llvm-3.7/Portfile

Added Paths:
-----------
    trunk/dports/lang/llvm-3.4/files/llvm-skip-unittests.patch
    trunk/dports/lang/llvm-3.5/files/llvm-skip-unittests.patch
    trunk/dports/lang/llvm-3.6/files/llvm-skip-unittests.patch
    trunk/dports/lang/llvm-3.7/files/llvm-skip-unittests.patch

Modified: trunk/dports/lang/llvm-3.4/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.4/Portfile	2015-01-18 20:29:16 UTC (rev 131797)
+++ trunk/dports/lang/llvm-3.4/Portfile	2015-01-18 20:34:05 UTC (rev 131798)
@@ -114,7 +114,8 @@
         0004-Set-the-Mach-O-CPU-Subtype-to-ppc7400-when-targeting.patch \
         0005-_CS_DARWIN_USER-macros-available-on-darwin-9.-Thanks.patch \
         0006-Fix-dylib-install-name-when-building-on-Tiger.patch \
-        0007-Define-EXC_MASK_CRASH-and-MACH_EXCEPTION_CODES-if-th.patch
+        0007-Define-EXC_MASK_CRASH-and-MACH_EXCEPTION_CODES-if-th.patch \
+        llvm-skip-unittests.patch
 
 if {${subport} eq "clang-${llvm_version}"} {
     patchfiles-append \

Added: trunk/dports/lang/llvm-3.4/files/llvm-skip-unittests.patch
===================================================================
--- trunk/dports/lang/llvm-3.4/files/llvm-skip-unittests.patch	                        (rev 0)
+++ trunk/dports/lang/llvm-3.4/files/llvm-skip-unittests.patch	2015-01-18 20:34:05 UTC (rev 131798)
@@ -0,0 +1,13 @@
+diff --git a/unittests/Makefile.unittest b/unittests/Makefile.unittest
+index bd32aed..993b69a 100644
+--- a/unittests/Makefile.unittest
++++ b/unittests/Makefile.unittest
+@@ -54,7 +54,7 @@ $(LLVMUnitTestExe): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)
+ 	$(Echo) ======= Finished Linking $(BuildMode) Unit test $(TESTNAME) \
+           $(StripWarnMsg)
+ 
+-all:: $(LLVMUnitTestExe)
++all::
+ 
+ unitcheck:: $(LLVMUnitTestExe)
+ 	$(Run.Shared) $(LLVMUnitTestExe)

Modified: trunk/dports/lang/llvm-3.5/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.5/Portfile	2015-01-18 20:29:16 UTC (rev 131797)
+++ trunk/dports/lang/llvm-3.5/Portfile	2015-01-18 20:34:05 UTC (rev 131798)
@@ -119,7 +119,8 @@
         0002-MacPorts-Only-Use-full-path-for-the-dylib-id-instead.patch \
         0003-MacPorts-Only-Don-t-embed-the-deployment-target-in-t.patch \
         0004-MacPorts-Only-Skip-checking-for-python-in-configure.patch \
-        0005-Set-the-Mach-O-CPU-Subtype-to-ppc7400-when-targeting.patch
+        0005-Set-the-Mach-O-CPU-Subtype-to-ppc7400-when-targeting.patch \
+        llvm-skip-unittests.patch
 
 if {${subport} eq "clang-${llvm_version}"} {
     patchfiles-append \
@@ -287,8 +288,6 @@
 
 post-patch {
     if {${subport} eq "clang-${llvm_version}"} {
-        reinplace {s/VERBOSE := 0/VERBOSE := 1/} ${worksrcpath}/projects/compiler-rt/make/config.mk
-
         reinplace "s|@@PREFIX@@|${prefix}|g" \
             ${worksrcpath}/projects/compiler-rt/make/platform/clang_darwin.mk \
             ${worksrcpath}/projects/compiler-rt/make/platform/clang_macho_embedded.mk

Added: trunk/dports/lang/llvm-3.5/files/llvm-skip-unittests.patch
===================================================================
--- trunk/dports/lang/llvm-3.5/files/llvm-skip-unittests.patch	                        (rev 0)
+++ trunk/dports/lang/llvm-3.5/files/llvm-skip-unittests.patch	2015-01-18 20:34:05 UTC (rev 131798)
@@ -0,0 +1,13 @@
+diff --git a/unittests/Makefile.unittest b/unittests/Makefile.unittest
+index bd32aed..993b69a 100644
+--- a/unittests/Makefile.unittest
++++ b/unittests/Makefile.unittest
+@@ -54,7 +54,7 @@ $(LLVMUnitTestExe): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)
+ 	$(Echo) ======= Finished Linking $(BuildMode) Unit test $(TESTNAME) \
+           $(StripWarnMsg)
+ 
+-all:: $(LLVMUnitTestExe)
++all::
+ 
+ unitcheck:: $(LLVMUnitTestExe)
+ 	$(Run.Shared) $(LLVMUnitTestExe)

Modified: trunk/dports/lang/llvm-3.6/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.6/Portfile	2015-01-18 20:29:16 UTC (rev 131797)
+++ trunk/dports/lang/llvm-3.6/Portfile	2015-01-18 20:34:05 UTC (rev 131798)
@@ -99,7 +99,8 @@
         0002-MacPorts-Only-Update-install-targets-for-clang-subpo.patch \
         0003-MacPorts-Only-Use-full-path-for-the-dylib-id-instead.patch \
         0004-MacPorts-Only-Don-t-embed-the-deployment-target-in-t.patch \
-        0005-MacPorts-Only-Skip-checking-for-python-in-configure.patch
+        0005-MacPorts-Only-Skip-checking-for-python-in-configure.patch \
+        llvm-skip-unittests.patch
 
 if {${subport} eq "clang-${llvm_version}"} {
     patchfiles-append \
@@ -255,8 +256,6 @@
 
 post-patch {
     if {${subport} eq "clang-${llvm_version}"} {
-        reinplace {s/VERBOSE := 0/VERBOSE := 1/} ${worksrcpath}/projects/compiler-rt/make/config.mk
-
         reinplace "s|@@PREFIX@@|${prefix}|g" \
             ${worksrcpath}/projects/compiler-rt/make/platform/clang_darwin.mk \
             ${worksrcpath}/projects/compiler-rt/make/platform/clang_macho_embedded.mk

Added: trunk/dports/lang/llvm-3.6/files/llvm-skip-unittests.patch
===================================================================
--- trunk/dports/lang/llvm-3.6/files/llvm-skip-unittests.patch	                        (rev 0)
+++ trunk/dports/lang/llvm-3.6/files/llvm-skip-unittests.patch	2015-01-18 20:34:05 UTC (rev 131798)
@@ -0,0 +1,13 @@
+diff --git a/unittests/Makefile.unittest b/unittests/Makefile.unittest
+index bd32aed..993b69a 100644
+--- a/unittests/Makefile.unittest
++++ b/unittests/Makefile.unittest
+@@ -54,7 +54,7 @@ $(LLVMUnitTestExe): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)
+ 	$(Echo) ======= Finished Linking $(BuildMode) Unit test $(TESTNAME) \
+           $(StripWarnMsg)
+ 
+-all:: $(LLVMUnitTestExe)
++all::
+ 
+ unitcheck:: $(LLVMUnitTestExe)
+ 	$(Run.Shared) $(LLVMUnitTestExe)

Modified: trunk/dports/lang/llvm-3.7/Portfile
===================================================================
--- trunk/dports/lang/llvm-3.7/Portfile	2015-01-18 20:29:16 UTC (rev 131797)
+++ trunk/dports/lang/llvm-3.7/Portfile	2015-01-18 20:34:05 UTC (rev 131798)
@@ -99,7 +99,8 @@
         0001-Set-the-Mach-O-CPU-Subtype-to-ppc7400-when-targeting.patch \
         0002-MacPorts-Only-Update-install-targets-for-clang-subpo.patch \
         0003-MacPorts-Only-Use-full-path-for-the-dylib-id-instead.patch \
-        0004-MacPorts-Only-Don-t-embed-the-deployment-target-in-t.patch
+        0004-MacPorts-Only-Don-t-embed-the-deployment-target-in-t.patch \
+        llvm-skip-unittests.patch
 
 if {${subport} eq "clang-${llvm_version}"} {
     patchfiles-append \
@@ -255,8 +256,6 @@
 
 post-patch {
     if {${subport} eq "clang-${llvm_version}"} {
-        reinplace {s/VERBOSE := 0/VERBOSE := 1/} ${worksrcpath}/projects/compiler-rt/make/config.mk
-
         reinplace "s|@@PREFIX@@|${prefix}|g" \
             ${worksrcpath}/projects/compiler-rt/make/platform/clang_darwin.mk \
             ${worksrcpath}/projects/compiler-rt/make/platform/clang_macho_embedded.mk

Added: trunk/dports/lang/llvm-3.7/files/llvm-skip-unittests.patch
===================================================================
--- trunk/dports/lang/llvm-3.7/files/llvm-skip-unittests.patch	                        (rev 0)
+++ trunk/dports/lang/llvm-3.7/files/llvm-skip-unittests.patch	2015-01-18 20:34:05 UTC (rev 131798)
@@ -0,0 +1,13 @@
+diff --git a/unittests/Makefile.unittest b/unittests/Makefile.unittest
+index bd32aed..993b69a 100644
+--- a/unittests/Makefile.unittest
++++ b/unittests/Makefile.unittest
+@@ -54,7 +54,7 @@ $(LLVMUnitTestExe): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)
+ 	$(Echo) ======= Finished Linking $(BuildMode) Unit test $(TESTNAME) \
+           $(StripWarnMsg)
+ 
+-all:: $(LLVMUnitTestExe)
++all::
+ 
+ unitcheck:: $(LLVMUnitTestExe)
+ 	$(Run.Shared) $(LLVMUnitTestExe)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150118/a73b96fb/attachment.html>


More information about the macports-changes mailing list