Opened 8 years ago

Closed 7 years ago

#52784 closed enhancement (invalid)

allow clang-3.9 support clang compilers to find the omp.h header from libomp package

Reported by: jwhowarth Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: larryv (Lawrence Velázquez)
Port: llvm-3.9

Description

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.

Attachments (1)

Portfile.diff (773 bytes) - added by jwhowarth 8 years ago.
Portfile diff to allow clang-3.9 compilers to find omp.h from libomp

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by jwhowarth

Attachment: Portfile.diff added

Portfile diff to allow clang-3.9 compilers to find omp.h from libomp

comment:1 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

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

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Cc: larryv added; jeremyhu@… removed
Keywords: haspatch added
Owner: changed from macports-tickets@… to jeremyhu
Status: newassigned
Type: updateenhancement
Version: 2.3.4

comment:3 Changed 7 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: invalid
Status: assignedclosed

No response, so closing.

Note: See TracTickets for help on using tickets.