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

Jason Liu jasonliu at
Sat Nov 13 02:18:16 UTC 2021

Maybe it would be useful to add this workaround to the info provided in ?

Jason Liu

On Fri, Nov 12, 2021 at 9:09 PM Eric Borisch <eborisch at> wrote:

> 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.
> Thanks,
>   - Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-dev mailing list