What You’ll Need
Before building the Dart SDK, ensure you have:- Python 3 installed on your system
- Chromium’s depot_tools installed and in your PATH
- Platform-specific build tools (see Dependencies)
- The complete Dart source tree (not just a git clone)
Build Process Overview
Building the Dart SDK involves these general steps:Basic Build Command
The most common build command creates a release SDK for your platform:Build Output Locations
The build output location varies by platform:- Linux:
out/ReleaseX64/dart-sdk - Windows:
out/ReleaseX64/dart-sdk - macOS:
xcodebuild/ReleaseARM64/dart-sdk
Common Build Options
Architecture
Specify the target architecture with--arch or -a:
x64, arm, arm64, riscv64
Build Mode
Choose between debug and release modes with--mode or -m:
Build Targets
create_sdk- Full Dart SDK (most common)runtime- Standalone VM only (faster build)most- Most build targets (for testing)
Platform-Specific Guides
For detailed platform-specific instructions, see:Build Performance Tips
Local File System
We recommend using a local file system for build output. If your code is on NFS, link the output directory locally:Build Notifications
On Mac and Linux, you can get a notification when long builds complete:Next Steps
Dependencies
Install required build dependencies
Build from Source
Complete step-by-step build instructions
ARM/RISC-V
Build for ARM and RISC-V processors
Android
Build the Dart VM for Android