Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.03 KB

building.md

File metadata and controls

56 lines (39 loc) · 1.03 KB

Building from source

Build on Windows

Windows Requirements

  • Visual Studio 2026
  • ~50 GB of free disk space (LLVM/MLIR build dominates this)

The hardcoded C:\dev\... paths in the scripts below are examples — adjust them to your checkout location.

First, precompile dependencies

cd TypeScriptCompiler
prepare_3rdParty.bat

To build TSLANG binaries:

cd TypeScriptCompiler\tslang
config_tslang_release.bat
build_tslang_release.bat

Build on Linux (Ubuntu 20.04 and 22.04)

Linux Requirements

  • gcc or clang
  • cmake
  • ninja-build
  • ~50 GB of free disk space (LLVM/MLIR build dominates this)
  • sudo apt-get install libtinfo-dev

First, precompile dependencies

chmod +x *.sh
cd ~/TypeScriptCompiler
./prepare_3rdParty.sh

To build TSLANG binaries:

cd ~/TypeScriptCompiler/tslang
chmod +x *.sh
./config_tslang_release.sh
./build_tslang_release.sh

Android

See Build the Android libraries from source.