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 4064 4064 case OMPRT_OMP: 4065 4065 case OMPRT_IOMP5: 4066 4066 // 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"); 4067 4069 CmdArgs.push_back("-fopenmp"); 4068 4070 4069 4071 // If no option regarding the use of TLS in OpenMP codegeneration is … … 6531 6533 options::OPT_fno_openmp, false)) { 6532 6534 switch (getOpenMPRuntime(getToolChain(), Args)) { 6533 6535 case OMPRT_OMP: 6536 // Automatically find MacPorts' libomp 6537 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 6534 6538 CmdArgs.push_back("-lomp"); 6535 6539 break; 6536 6540 case OMPRT_GOMP: 6541 // Automatically find MacPorts' libgomp (libomp) 6542 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 6537 6543 CmdArgs.push_back("-lgomp"); 6538 6544 break; 6539 6545 case OMPRT_IOMP5: 6546 // Automatically find MacPorts' libiomp5 (libomp) 6547 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 6540 6548 CmdArgs.push_back("-liomp5"); 6541 6549 break; 6542 6550 case OMPRT_Unknown: … … 8248 8256 // Also link the particular OpenMP runtimes. 8249 8257 switch (getOpenMPRuntime(ToolChain, Args)) { 8250 8258 case OMPRT_OMP: 8259 // Automatically find MacPorts' libomp 8260 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 8251 8261 CmdArgs.push_back("-lomp"); 8252 8262 break; 8253 8263 case OMPRT_GOMP: 8264 // Automatically find MacPorts' libgomp (libomp) 8265 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 8254 8266 CmdArgs.push_back("-lgomp"); 8255 8267 8256 8268 // FIXME: Exclude this for platforms with libgomp that don't require … … 8258 8270 CmdArgs.push_back("-lrt"); 8259 8271 break; 8260 8272 case OMPRT_IOMP5: 8273 // Automatically find MacPorts' libiomp5 (libomp) 8274 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 8261 8275 CmdArgs.push_back("-liomp5"); 8262 8276 break; 8263 8277 case OMPRT_Unknown: