I've successfully built everything on Linux using MSVC SDK using the attached patch.
Main changes include:
# win_sdk
- Fix broken path handling, now we require win_sdk's path to point to the root of the sdk package packed by aosp depot_tools
- Fix the algorithm used to expand environment variables in SetEnv.json
- Remove the half-ass baked broken Windows SDK Case Fixing component, and instead rely on the SDK being stored in a case-insensitive filesystem
# MSVCConfig
- Fix typo in code that results in llvm_triple returning a triple instead of a string
- Use Host Stage2 toolchain to avoid building LLVM Host Tools in WindowsBuilder, which is broken without MinGW and too much work to fix.
- Add llvm-rc.exe and llvm-ml.exe
# LLVM
- Disable LLVM's InlineAsm BLAKE3 Implementation, which last time I check is broken on ClangCL, resulting in runtime crash.
It seems to me that I can't upload this patch to AOSP for a review directly.
Zhang