Compile environment:
Platform: windows 10.0.22000
SDK: windows 10.0.22000(with SDK debugger)
MSVC toolchain: v14.31(MFC support installed)
some trial and error tips as below:
1. If using msvc compiler and linker, there will be compile error.
gn gen ./out/default --ide=vs2022 --sln=webrtc --args='use_lld=false is_clang=false treat_warnings_as_errors=false'
src\logging/rtc_event_log/events/rtc_event_alr_state.h(71): error C2327: 'webrtc::RtcEventAlrState::in_alr_': is not a type name, static, or enumerator
2. If using clang compiler and linker, there will be link error.
gn gen ./out/default --ide=vs2022 --sln=webrtc
lld-link: error: procedure symbol record for `operator new` in d:\a01\_work\43\s\Intermediate\vctools\libcmt.nativeproj_1198561531\objd\amd64\new_scalar.obj refers to PDB item index 0x11D1 which is not a valid function ID record
3. The only method to build SUCCESS is using clang to compile and msvc(linker.exe not lld.exe) to link.
gn gen ./out/default --ide=vs2022 --sln=webrtc --args='use_lld=false treat_warnings_as_errors=false'