OpenMP runtime on OSX


I am working on a tool called Arched for data race detection on OpenMP applications.
Archer is based on Clang/LLVM and it works correctly on Linux.
I would like to port the tool on OSX but I am having some issues with the OpenMP runtime.

As far as I know Apple Clang does not support OpenMP, so I brew LLVM 4.0 and compiled the OpenMP runtime from the github llvm-mirror and it’s working correctly.
However, when I run “ninja check-libomp”, I get this compiler error (for each test):