[144572] trunk/dports/lang/llvm-3.7/files/openmp-locations.patch
jeremyhu at macports.org
jeremyhu at macports.org
Tue Jan 12 19:13:46 PST 2016
Revision: 144572
https://trac.macports.org/changeset/144572
Author: jeremyhu at macports.org
Date: 2016-01-12 19:13:46 -0800 (Tue, 12 Jan 2016)
Log Message:
-----------
clang-3.7: Fix +openmp patch (#50309)
Modified Paths:
--------------
trunk/dports/lang/llvm-3.7/files/openmp-locations.patch
Modified: trunk/dports/lang/llvm-3.7/files/openmp-locations.patch
===================================================================
--- trunk/dports/lang/llvm-3.7/files/openmp-locations.patch 2016-01-13 02:28:48 UTC (rev 144571)
+++ trunk/dports/lang/llvm-3.7/files/openmp-locations.patch 2016-01-13 03:13:46 UTC (rev 144572)
@@ -1,6 +1,25 @@
--- orig/tools/clang/lib/Driver/Tools.cpp 2015-09-03 11:39:15.000000000 -0500
+++ fixed/tools/clang/lib/Driver/Tools.cpp 2015-09-03 11:44:09.000000000 -0500
-@@ -4064,6 +4064,8 @@
+@@ -2471,12 +2471,18 @@
+
+ switch (getOpenMPRuntime(TC, Args)) {
+ case OMPRT_OMP:
++ // Automatically find MacPorts' libomp
++ CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
+ CmdArgs.push_back("-lomp");
+ break;
+ case OMPRT_GOMP:
++ // Automatically find MacPorts' libgomp (libomp)
++ CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
+ CmdArgs.push_back("-lgomp");
+ break;
+ case OMPRT_IOMP5:
++ // Automatically find MacPorts' libiomp (libomp)
++ CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
+ CmdArgs.push_back("-liomp5");
+ break;
+ case OMPRT_Unknown:
+@@ -4089,6 +4095,8 @@
case OMPRT_OMP:
case OMPRT_IOMP5:
// Clang can generate useful OpenMP code for these two runtime libraries.
@@ -9,26 +28,7 @@
CmdArgs.push_back("-fopenmp");
// If no option regarding the use of TLS in OpenMP codegeneration is
-@@ -6531,12 +6533,18 @@
- options::OPT_fno_openmp, false)) {
- switch (getOpenMPRuntime(getToolChain(), Args)) {
- case OMPRT_OMP:
-+ // Automatically find MacPorts' libomp
-+ CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
- CmdArgs.push_back("-lomp");
- break;
- case OMPRT_GOMP:
-+ // Automatically find MacPorts' libgomp (libomp)
-+ CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
- CmdArgs.push_back("-lgomp");
- break;
- case OMPRT_IOMP5:
-+ // Automatically find MacPorts' libiomp5 (libomp)
-+ CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
- CmdArgs.push_back("-liomp5");
- break;
- case OMPRT_Unknown:
-@@ -8248,9 +8256,13 @@
+@@ -8261,9 +8269,13 @@
// Also link the particular OpenMP runtimes.
switch (getOpenMPRuntime(ToolChain, Args)) {
case OMPRT_OMP:
@@ -42,7 +42,7 @@
CmdArgs.push_back("-lgomp");
// FIXME: Exclude this for platforms with libgomp that don't require
-@@ -8258,6 +8270,8 @@
+@@ -8271,6 +8283,8 @@
CmdArgs.push_back("-lrt");
break;
case OMPRT_IOMP5:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160112/4bba7304/attachment-0001.html>
More information about the macports-changes
mailing list