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.
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
Markdown
[](/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
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)
- # [`llvm-msvc`](https://llvm-msvc.com)
- [](https://github.com/backengineering/llvm-msvc/actions/workflows/windows-llvm-msvc-build.yml)
- [](https://github.com/backengineering/llvm-msvc/actions/workflows/android-llvm-msvc-build.yml)
- [](https://github.com/backengineering/llvm-msvc/actions/workflows/macos-arm64-llvm-msvc-build.yml)
- 
- [](https://github.com/backengineering/llvm-msvc/releases)
- [](https://github.com/backengineering/llvm-msvc/releases)
- [``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.
- <img width="732" height="697" alt="image" src="https://github.com/user-attachments/assets/743ba706-24c4-48f3-92af-cc2f9e9f055f" />
- ## Features:
- - Compatible with ``MSVC`` syntax as much as possible.
- - Almost fully compatible with ``SEH``.
- - Added some special Intrinsic functions(``__vmx_vmread``/``__vmx_write``).
- - Supports ``x64``/``ARM64`` windows drivers.
- - Supports ``AArch64`` android GKI drivers.
- - Allows naked ``X64`` inline asm.
- - Enables multiple cores compilation.
- - Supports ``/MP`` when precompiled headers are present.
- - Supports ``/GL`` (LTO optimization).
- ## FAQ
- ### Why do we make this project?
- - ``Clang`` follows the ``GCC`` standard, while ``MSVC`` has its own unique syntax.
- - Some of the code is pretty hacky. Can't submit it officially.
- - Waiting for the official fix takes too long.
- ### How to use llvm-msvc?
- - Install Visual Studio 2015-2022 (I recommend using 2022) along with WDK11.
- - Download and install llvm-msvc from the following repository [llvm-msvc_X86_64_installer-PDB.exe](https://github.com/backengineering/llvm-msvc/releases).
- - Create your Windows driver project and choose "LLVM-MSVC_v143_KernelMode" as your platform toolset.
- - Compile your project.
- ### How to compile?
- ```
- X86+ARM64:clang+lld+lldb+debug
- 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
- msbuild /m -p:Configuration=Debug INSTALL.vcxproj
- --------------------------------------------------
- X86+ARM64:clang+lld+lldb+RelWithDebInfo
- mkdir build2
- pushd build2
- 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
- msbuild /m -p:Configuration=RelWithDebInfo INSTALL.vcxproj
- --------------------------------------------------
- X86+ARM64:clang+lld+lldb+release
- mkdir build3
- pushd build3
- 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
- msbuild /m -p:Configuration=release INSTALL.vcxproj
- ```
- ### How to contribute?
- - https://github.com/HyunCafe/contribute-practice
- - https://docs.github.com/en/get-started/quickstart/contributing-to-projects
- ### How can I learn LLVM?
- If you don't know how to learn ``LLVM``, you can check out this [repository](https://github.com/gmh5225/awesome-llvm-security) of mine.
- ### Can it run on linux?
- Yes.
- ### Can it run on macos?
- Yes.
- ## Credits
- - ``LLVM``
- - [``mold``](https://github.com/rui314/mold)
- - Some anonymous people
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.