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 2471 2471 2472 2472 switch (getOpenMPRuntime(TC, Args)) { 2473 2473 case OMPRT_OMP: 2474 // Automatically find MacPorts' libomp 2475 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 2474 2476 CmdArgs.push_back("-lomp"); 2475 2477 break; 2476 2478 case OMPRT_GOMP: 2479 // Automatically find MacPorts' libgomp (libomp) 2480 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 2477 2481 CmdArgs.push_back("-lgomp"); 2478 2482 break; 2479 2483 case OMPRT_IOMP5: 2484 // Automatically find MacPorts' libiomp (libomp) 2485 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 2480 2486 CmdArgs.push_back("-liomp5"); 2481 2487 break; 2482 2488 case OMPRT_Unknown: … … 4089 4095 case OMPRT_OMP: 4090 4096 case OMPRT_IOMP5: 4091 4097 // 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"); 4092 4100 CmdArgs.push_back("-fopenmp"); 4093 4101 4094 4102 // If no option regarding the use of TLS in OpenMP codegeneration is … … 8261 8269 // Also link the particular OpenMP runtimes. 8262 8270 switch (getOpenMPRuntime(ToolChain, Args)) { 8263 8271 case OMPRT_OMP: 8272 // Automatically find MacPorts' libomp 8273 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 8264 8274 CmdArgs.push_back("-lomp"); 8265 8275 break; 8266 8276 case OMPRT_GOMP: 8277 // Automatically find MacPorts' libgomp (libomp) 8278 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 8267 8279 CmdArgs.push_back("-lgomp"); 8268 8280 8269 8281 // FIXME: Exclude this for platforms with libgomp that don't require … … 8271 8283 CmdArgs.push_back("-lrt"); 8272 8284 break; 8273 8285 case OMPRT_IOMP5: 8286 // Automatically find MacPorts' libiomp5 (libomp) 8287 CmdArgs.push_back("-L@@PREFIX@@/lib/libomp"); 8274 8288 CmdArgs.push_back("-liomp5"); 8275 8289 break; 8276 8290 case OMPRT_Unknown: