Ticket #50309: openmp-locations.patch

File openmp-locations.patch, 2.0 KB (added by eborisch (Eric A. Borisch), 9 years ago)
  • tools/clang/lib/Driver/Tools.cpp

    old new  
    24712471
    24722472  switch (getOpenMPRuntime(TC, Args)) {
    24732473  case OMPRT_OMP:
     2474    // Automatically find MacPorts' libomp
     2475    CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    24742476    CmdArgs.push_back("-lomp");
    24752477    break;
    24762478  case OMPRT_GOMP:
     2479    // Automatically find MacPorts' libgomp (libomp)
     2480    CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    24772481    CmdArgs.push_back("-lgomp");
    24782482    break;
    24792483  case OMPRT_IOMP5:
     2484    // Automatically find MacPorts' libiomp (libomp)
     2485    CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    24802486    CmdArgs.push_back("-liomp5");
    24812487    break;
    24822488  case OMPRT_Unknown:
     
    40894095    case OMPRT_OMP:
    40904096    case OMPRT_IOMP5:
    40914097      // Clang can generate useful OpenMP code for these two runtime libraries.
     4098      // Automatically find MacPorts' omp.h
     4099      CmdArgs.push_back("-I@@PREFIX@@/include/libomp");
    40924100      CmdArgs.push_back("-fopenmp");
    40934101
    40944102      // If no option regarding the use of TLS in OpenMP codegeneration is
     
    82618269        // Also link the particular OpenMP runtimes.
    82628270        switch (getOpenMPRuntime(ToolChain, Args)) {
    82638271        case OMPRT_OMP:
     8272          // Automatically find MacPorts' libomp
     8273          CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    82648274          CmdArgs.push_back("-lomp");
    82658275          break;
    82668276        case OMPRT_GOMP:
     8277          // Automatically find MacPorts' libgomp (libomp)
     8278          CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    82678279          CmdArgs.push_back("-lgomp");
    82688280
    82698281          // FIXME: Exclude this for platforms with libgomp that don't require
     
    82718283          CmdArgs.push_back("-lrt");
    82728284          break;
    82738285        case OMPRT_IOMP5:
     8286          // Automatically find MacPorts' libiomp5 (libomp)
     8287          CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    82748288          CmdArgs.push_back("-liomp5");
    82758289          break;
    82768290        case OMPRT_Unknown: