(original) (raw)

I'm not sure this is the right place to post... If not, feel free to redirect me.

I am trying to build LLVM 11, including Clang and OpenMP, on a Windows machine with Visual Studio 2019 installed.

Clearly the openmp project is not adapted to a multiple configuration build system like Visual Studio. It assumes that library files are in a lib directory rather than in lib/Release, lib/Debug, etc. I have tried to build with LIBOMP\_COPY\_EXPORTS disabled, which helps, but I still get link errors.

So I have tried to build with nmake instead, which is a single configuration system like make. Strangely, this works for a release build, but not for a debug build. When I try to build in debug, I get error messages about unacceptable uses of std::atomic.

Perhaps a solution would be to compile LLVM/Clang and OpenMP with Visual Studio but separately? Only I don't know how to do that...

Has anybody out there managed to solve this problem one way or another?

Geoff