Skip to content
Back to search

llvm-msvc

LLVM fork with explicit compatibility with MSVC 2022 features.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

Its scripts were only partly scanned.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/aftermathlabs/llvm-msvc with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/aftermathlabs/llvm-msvc'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/backengineering--llvm-msvc/badge.svg)](/listings/backengineering--llvm-msvc)

HTML

<a href="/listings/backengineering--llvm-msvc"><img src="/api/listings/backengineering--llvm-msvc/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 76 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # [`llvm-msvc`](https://llvm-msvc.com)
  2. [![windows-llvm-msvc-build](https://github.com/backengineering/llvm-msvc/actions/workflows/windows-llvm-msvc-build.yml/badge.svg?branch=dev)](https://github.com/backengineering/llvm-msvc/actions/workflows/windows-llvm-msvc-build.yml)
  3. [![android-llvm-msvc-build](https://github.com/backengineering/llvm-msvc/actions/workflows/android-llvm-msvc-build.yml/badge.svg?branch=dev)](https://github.com/backengineering/llvm-msvc/actions/workflows/android-llvm-msvc-build.yml)
  4. [![macos-arm64-llvm-msvc-build](https://github.com/backengineering/llvm-msvc/actions/workflows/macos-arm64-llvm-msvc-build.yml/badge.svg)](https://github.com/backengineering/llvm-msvc/actions/workflows/macos-arm64-llvm-msvc-build.yml)
  5. ![image](https://github.com/backengineering/llvm-msvc/assets/13917777/86a7eb6a-466a-4290-8ec5-e3affc3e3c0a)
  6. [![Github All Releases](https://img.shields.io/github/downloads/backengineering/llvm-msvc/total.svg)](https://github.com/backengineering/llvm-msvc/releases)
  7. [![GitHub release](https://img.shields.io/github/release/backengineering/llvm-msvc.svg)](https://github.com/backengineering/llvm-msvc/releases)
  8. [``llvm-msvc``](https://llvm-msvc.com) is a compiler based on ``LLVM`` that isn't limited by ``MSVC``. The aim is to provide the same experience as ``MSVC`` on Windows. You can use naked functions anywhere and also add custom support like obfuscation.
  9. <img width="732" height="697" alt="image" src="https://github.com/user-attachments/assets/743ba706-24c4-48f3-92af-cc2f9e9f055f" />
  10. ## Features:
  11. - Compatible with ``MSVC`` syntax as much as possible.
  12. - Almost fully compatible with ``SEH``.
  13. - Added some special Intrinsic functions(``__vmx_vmread``/``__vmx_write``).
  14. - Supports ``x64``/``ARM64`` windows drivers.
  15. - Supports ``AArch64`` android GKI drivers.
  16. - Allows naked ``X64`` inline asm.
  17. - Enables multiple cores compilation.
  18. - Supports ``/MP`` when precompiled headers are present.
  19. - Supports ``/GL`` (LTO optimization).
  20. ## FAQ
  21. ### Why do we make this project?
  22. - ``Clang`` follows the ``GCC`` standard, while ``MSVC`` has its own unique syntax.
  23. - Some of the code is pretty hacky. Can't submit it officially.
  24. - Waiting for the official fix takes too long.
  25. ### How to use llvm-msvc?
  26. - Install Visual Studio 2015-2022 (I recommend using 2022) along with WDK11.
  27. - Download and install llvm-msvc from the following repository [llvm-msvc_X86_64_installer-PDB.exe](https://github.com/backengineering/llvm-msvc/releases).
  28. - Create your Windows driver project and choose "LLVM-MSVC_v143_KernelMode" as your platform toolset.
  29. - Compile your project.
  30. ### How to compile?
  31. ```
  32. X86+ARM64:clang+lld+lldb+debug
  33. cmake -Bbuild -A X64 -DLLDB_ENABLE_PYTHON=OFF -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" -DCMAKE_INSTALL_PREFIX=E:\llvm\install-debug-64 -DLLVM_TARGETS_TO_BUILD="X86;AArch64" -DCMAKE_BUILD_TYPE=Debug llvm
  34. msbuild /m -p:Configuration=Debug INSTALL.vcxproj
  35. --------------------------------------------------
  36. X86+ARM64:clang+lld+lldb+RelWithDebInfo
  37. mkdir build2
  38. pushd build2
  39. cmake .. -G "Visual Studio 17 2022" -A X64 -DLLVM_ENABLE_MIMALLOC=ON -DCMAKE_CXX_FLAGS="/utf-8" -DCMAKE_C_FLAGS="/utf-8" -DLLVM_ENABLE_PACK_PDB=ON -DLLDB_ENABLE_PYTHON=OFF -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" -DCMAKE_INSTALL_PREFIX=E:\llvm\install-RelWithDebInfo-64 -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_ZLIB=OFF -DLLVM_TARGETS_TO_BUILD="X86;AArch64" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_USE_CRT_RELEASE=MT ../llvm
  40. msbuild /m -p:Configuration=RelWithDebInfo INSTALL.vcxproj
  41. --------------------------------------------------
  42. X86+ARM64:clang+lld+lldb+release
  43. mkdir build3
  44. pushd build3
  45. cmake .. -G "Visual Studio 17 2022" -A X64 -DLLVM_ENABLE_MIMALLOC=ON -DCMAKE_CXX_FLAGS="/utf-8" -DCMAKE_C_FLAGS="/utf-8" -DLLDB_ENABLE_PYTHON=OFF -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" -DCMAKE_INSTALL_PREFIX=E:\llvm\install-release-64 -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_ZLIB=OFF -DLLVM_TARGETS_TO_BUILD="X86;AArch64" -DCMAKE_BUILD_TYPE=release -DLLVM_USE_CRT_RELEASE=MT ../llvm
  46. msbuild /m -p:Configuration=release INSTALL.vcxproj
  47. ```
  48. ### How to contribute?
  49. - https://github.com/HyunCafe/contribute-practice
  50. - https://docs.github.com/en/get-started/quickstart/contributing-to-projects
  51. ### How can I learn LLVM?
  52. If you don't know how to learn ``LLVM``, you can check out this [repository](https://github.com/gmh5225/awesome-llvm-security) of mine.
  53. ### Can it run on linux?
  54. Yes.
  55. ### Can it run on macos?
  56. Yes.
  57. ## Credits
  58. - ``LLVM``
  59. - [``mold``](https://github.com/rui314/mold)
  60. - Some anonymous people

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.