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

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


Maybe it would be useful to add this workaround to the info provided in
https://trac.macports.org/wiki/CompilerSelection#Parallelism ?

-- 
Jason Liu


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

> Just looking for anyone interested to provide feedback on this:
>
>    https://github.com/macports/macports-ports/pull/12933
>
> 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: <http://lists.macports.org/pipermail/macports-dev/attachments/20211112/559a6b71/attachment.htm>


More information about the macports-dev mailing list