Skip to content

Concrete instructions for getting MSVC Clang installed #1580

@djmattyg007

Description

@djmattyg007

Is there a set of concrete instructions for getting MSVC Clang installed? I'm not sure if that's the right terminology but I'm honestly not sure. I'm not using cc-rs directly, but rather through another software package (nvim-treesitter). The documentation I'm following is here:

https://docs.rs/cc/latest/cc/#compile-time-requirements

And that's helpful, but it doesn't tell me how to get the requirements installed. I've tried the following:

  • winget install MartinStorsjo.LLVM-MinGW.MSVCRT
  • winget install MSYS2.MSYS2
  • winget install LLVM.LLVM
  • winget install Microsoft.VisualStudio.2022.BuildTools
    • Followed by running the build tools and ensuring the Clang components are installed (see screenshot below)

I've tried running the software in a regular Powershell prompt, as well as the Developer Powershell for VS 2022 prompt, and no matter what I try, I still get errors about cl.exe not being in my PATH. I don't know what else to do or try. Any pointers would be appreciated.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions