[libcxx] [docs] Update the MinGW build example (#68790)
The previous example wasn't a configuration that we actually test, but was a simplistic configuration with libstdc++ as ABI library. The previous example configuration has bitrotted and broken in a couple different ways since it was added: - In b0fd9497, libcxx added uses of weak symbols that can be overridden by the user. GNU ld fails to export such weak symbols on MinGW, resulting in errors like: C:/msys64/mingw64/bin/ld: cannot export _ZNSt3__126__libcpp_assertion_handlerEPKciS1_S1_: symbol wrong type (2 vs 3) By switching to using LLD, -DLLVM_ENABLE_LLD=ON, alternatively -DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld, linking still succeeds. - In a80e65e0, building with -DLIBCXX_CXX_ABI=libstdc++ in this configuration started failing. Switch to showing how to build with libcxxabi instead, which is the tested configuration and also is the typical configuration in how it most usually would be used on Windows. These updates allow removing the mentions of the old caveats with the build configuration.
Loading
Please sign in to comment