Ticket #48759: openmp-locations.patch

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

    old new  
    40644064    case OMPRT_OMP:
    40654065    case OMPRT_IOMP5:
    40664066      // Clang can generate useful OpenMP code for these two runtime libraries.
     4067      // Automatically find MacPorts' omp.h
     4068      CmdArgs.push_back("-I@@PREFIX@@/include/libomp");
    40674069      CmdArgs.push_back("-fopenmp");
    40684070
    40694071      // If no option regarding the use of TLS in OpenMP codegeneration is
     
    65316533                   options::OPT_fno_openmp, false)) {
    65326534    switch (getOpenMPRuntime(getToolChain(), Args)) {
    65336535    case OMPRT_OMP:
     6536      // Automatically find MacPorts' libomp
     6537      CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    65346538      CmdArgs.push_back("-lomp");
    65356539      break;
    65366540    case OMPRT_GOMP:
     6541      // Automatically find MacPorts' libgomp (libomp)
     6542      CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    65376543      CmdArgs.push_back("-lgomp");
    65386544      break;
    65396545    case OMPRT_IOMP5:
     6546      // Automatically find MacPorts' libiomp5 (libomp)
     6547      CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    65406548      CmdArgs.push_back("-liomp5");
    65416549      break;
    65426550    case OMPRT_Unknown:
     
    82488256        // Also link the particular OpenMP runtimes.
    82498257        switch (getOpenMPRuntime(ToolChain, Args)) {
    82508258        case OMPRT_OMP:
     8259          // Automatically find MacPorts' libomp
     8260          CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    82518261          CmdArgs.push_back("-lomp");
    82528262          break;
    82538263        case OMPRT_GOMP:
     8264          // Automatically find MacPorts' libgomp (libomp)
     8265          CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    82548266          CmdArgs.push_back("-lgomp");
    82558267
    82568268          // FIXME: Exclude this for platforms with libgomp that don't require
     
    82588270          CmdArgs.push_back("-lrt");
    82598271          break;
    82608272        case OMPRT_IOMP5:
     8273          // Automatically find MacPorts' libiomp5 (libomp)
     8274          CmdArgs.push_back("-L@@PREFIX@@/lib/libomp");
    82618275          CmdArgs.push_back("-liomp5");
    82628276          break;
    82638277        case OMPRT_Unknown: