[MacPorts] #52784: allow clang-3.9 support clang compilers to find the omp.h header from libomp package

MacPorts noreply at macports.org
Tue Nov 1 23:44:41 CET 2016


#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



More information about the macports-tickets mailing list