Skip to content

Could not find local Visual Studio install on x86_64-pc-windows-msv if C++ x64/x86 Build Tools (Latest) is not installed #1525

@Archengius

Description

@Archengius

cc-rs seems to be unable to locate local VS install and build tools unless Latest build tools component is installed from the Visual Studio Installer. Any other MSVC build tool packages (out of supported or pinned version build tool packages that can be installed from Individual Components tab) will result in cc-rs being unable to find and use Visual Studio install.

Steps to reproduce:

  1. Open Visual Studio Installer
  2. Install Visual Studio Community 2022
  3. Select "Desktop Development with C++" workload
  4. Unselect "MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)" component
  5. Go to individual components tab and select other version of MSVC build tools here ("MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.38 - v17.8)" in my case).
  6. Install the selected components
  7. Try compiling a native crate ("`libsqlite3-sys v0.27.0" in my case).
  8. Observe that cc-rs cannot find installation path for cl.exe

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