Skip to content

backengineering/llvm-msvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

llvm-msvc

llvm-msvc-build GitHub license

Github All Releases GitHub release

llvm-msvc is a compiler based LLVM that is not restricted by MSVC. The goal is to have the same experience as MSVC on Windows. You can use naked functions anywhere, as well as add custom support such as obfuscation.

Features:

  • SEH support.
  • Compatible with MSVC syntax as much as possible.
  • Windows Driver support.(Now only X64)
  • Intrinsic support.
  • Naked X64 inline asm support.
  • Support multiple cores compilation.
  • Support /MP when precompiled headers are present.

FAQ

Why do we make this project?

  • Clang uses the GCC standard, MSVC has its own special syntax.
  • Some of the code is rather hacky. Unable to submit to official.
  • Waiting for official fix is ​​too long.

How to compile?

X86:clang+lld+debug mkdir build-debug-64 pushd build-debug-64 cmake .. -G "Visual Studio 17 2022" -A X64 -DLLVM_ENABLE_PROJECTS="clang;lld" -DCMAKE_INSTALL_PREFIX=E:\llvm\install-debug-64 -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Debug ../llvm msbuild /m -p:Configuration=Debug INSTALL.vcxproj or cmake -Bbuild -A X64 -DLLVM_ENABLE_PROJECTS="clang;lld" -DCMAKE_INSTALL_PREFIX=E:\llvm\install-debug-64 -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Debug llvm X86:clang+lld+RelWithDebInfo mkdir build-RelWithDebInfo-64 pushd build-RelWithDebInfo-64 cmake .. -G "Visual Studio 17 2022" -A X64 -DLLVM_ENABLE_PROJECTS="clang;lld" -DCMAKE_INSTALL_PREFIX=E:\llvm\install-RelWithDebInfo-64 -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_ZLIB=OFF -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_USE_CRT_RELEASE=MT ../llvm msbuild /m -p:Configuration=RelWithDebInfo INSTALL.vcxproj X86:clang+lld+release mkdir build-release-64 pushd build-release-64 cmake .. -G "Visual Studio 17 2022" -A X64 -DLLVM_ENABLE_PROJECTS="clang;lld" -DCMAKE_INSTALL_PREFIX=E:\llvm\install-release-64 -DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_ZLIB=OFF -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=release -DLLVM_USE_CRT_RELEASE=MT ../llvm msbuild /m -p:Configuration=release INSTALL.vcxproj 

How to contribute?

How can I learn LLVM?

If you don't know how to learn LLVM, you can check out this repository of mine.

Can it run on linux?

No.

Can it run on macos?

No.

Credits

  • LLVM
  • Some anonymous people