Skip to content

Instantly share code, notes, and snippets.

@mcandre
Last active May 1, 2021 02:22
Show Gist options
  • Select an option

  • Save mcandre/5ceb67ad44f6b974d33bcddedcb16e89 to your computer and use it in GitHub Desktop.

Select an option

Save mcandre/5ceb67ad44f6b974d33bcddedcb16e89 to your computer and use it in GitHub Desktop.
Windows Install MSVC and clang

Windows Install clang

  1. Install Chocolatey.
  2. Launch a PowerShell terminal in administrator mode.
  3. Install visualstudio2019community.
  4. Install the Visual Studio 2019 native C++ Desktop workload with the optional Clang component included:
PS C:\> choco install --force visualstudio2019-workload-nativedesktop --package-parameters "--includeOptional"
  1. Reboot (Or sign out then sign back in).

cmake Integration

  1. Remove any cmake temporary files.
  2. Re-initialize cmake:
PS C:\> cmake -T ClangCL .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment