libcxx on windows without vcruntime

Hi,

I am trying to compile libcxx (master branch) on windows without vcruntime but it always result in redefinition errors.

my make command is

cmake -G Ninja -DLLVM_PATH=… -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DLIBCXX_NO_VCRUNTIME=1 -DCMAKE_CXX_SIMULATE_VERSION=19.25 -DLIBCXX_CXX_ABI:STRING=libcxxabi -DCMAKE_INSTALL_PREFIX=D:\llvm_local …\libcxx

Can anyone guide me how to compile it? I do not want to use vcruntime.

Regards,
R

It’s always helpful to provide the full output from the failing command.