Using Apple Clang to get OpenMP code (no clang-X.X required to compile)

Eric Borisch eborisch at
Sat Nov 13 02:08:44 UTC 2021

Just looking for anyone interested to provide feedback on this:

It uses '-Xpreprocessor -fopenmp' to get Apple's clang to compile OpenMP
code; it still relies on libomp for omp.h / -lomp, but doesn't require
clang-x.x to compile.

Not an official route, but it works; thanks to M.P. for the tip.

  - Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-dev mailing list