[MacPorts] #52784: allow clang-3.9 support clang compilers to find the omp.h header from libomp package
#52784: allow clang-3.9 support clang compilers to find the omp.h header from libomp package -----------------------+-------------------------------- Reporter: jwhowarth | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: llvm-3.9 -----------------------+-------------------------------- The attached Portfile.diff installs a symlink at ${sub_prefix}/lib/clang/${version}/include/omp.h so the clang-3.9 compilers can find the header provided by the libomp package. -- Ticket URL: <https://trac.macports.org/ticket/52784> MacPorts <https://www.macports.org/> Ports system for macOS
#52784: allow clang-3.9 support clang compilers to find the omp.h header from libomp package ------------------------+-------------------------------- Reporter: jwhowarth | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: llvm-3.9 | ------------------------+-------------------------------- Changes (by jwhowarth): * Attachment "Portfile.diff" added. Portfile diff to allow clang-3.9 compilers to find omp.h from libomp -- Ticket URL: <https://trac.macports.org/ticket/52784> MacPorts <https://www.macports.org/> Ports system for macOS
#52784: allow clang-3.9 support clang compilers to find the omp.h header from libomp package ------------------------+-------------------------------- Reporter: jwhowarth | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: llvm-3.9 | ------------------------+-------------------------------- Comment (by jeremyhu): This should be addressed already by openmp-locations.patch which does: {{{ @@ -5283,6 +5289,8 @@ void Clang::ConstructJob(Compilation &C, case Driver::OMPRT_OMP: case Driver::OMPRT_IOMP5: // Clang can generate useful OpenMP code for these two runtime libraries. + // Automatically find MacPorts' omp.h + CmdArgs.push_back("-I@@PREFIX@@/include/libomp"); CmdArgs.push_back("-fopenmp"); // If no option regarding the use of TLS in OpenMP codegeneration is }}} -- Ticket URL: <https://trac.macports.org/ticket/52784#comment:1> MacPorts <https://www.macports.org/> Ports system for macOS
#52784: allow clang-3.9 support clang compilers to find the omp.h header from libomp package --------------------------+---------------------- Reporter: jwhowarth | Owner: jeremyhu Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: llvm-3.9 | --------------------------+---------------------- Changes (by mf2k): * status: new => assigned * cc: jeremyhu@… (removed) * cc: larryv (added) * keywords: => haspatch * version: 2.3.4 => * owner: macports-tickets@… => jeremyhu * type: update => enhancement -- Ticket URL: <https://trac.macports.org/ticket/52784#comment:2> MacPorts <https://www.macports.org/> Ports system for macOS
participants (1)
-
MacPorts