Clone on Linux or Mac:
Extra steps for Windows users:
- (otherwise symlinks would require administrator privileges).
- Make sure you are using git version 2.19.2.windows.1 or newer.
- Set
core.symlinks=true
before the checkout:git config --global core.symlinks true
Update or Install Rust. Check that Rust installed/updated correctly:
cargo build -vv
However if you want to build Deno and V8 from source code:
When building V8 from source, there are more dependencies:
for running WPT tests. Ensure that
a suffix-less /python.exe
exists in your PATH
and it refers to
Python 3.
For Linux users glib-2.0 development files must also be installed. (On Ubuntu,
run apt install libglib2.0-dev
.)
For Windows users:
Get VS Community 2019 with “Desktop development with C++” toolkit and make sure to select the following required tools listed below along with all C++ tools.
- Visual C++ tools for CMake
- Windows 10 SDK (10.0.17763.0)
- Testing tools core features - Build Tools
- Visual C++ ATL for x86 and x64
- Visual C++ MFC for x86 and x64
- C++/CLI support
Enable “Debugging Tools for Windows”. Go to “Control Panel” → “Programs” → “Programs and Features” → Select “Windows Software Development Kit - Windows 10” → “Change” → “Change” → Check “Debugging Tools For Windows” → “Change” → “Finish”. Or use: (Notice: it will download the files, you should install
X64 Debuggers And Tools-x64_en-us.msi
file manually.)
See rusty_v8’s README for more details about the V8 build.
# Build:
# Build errors? Ensure you have latest main and try building again, or if that doesn't work try:
cargo clean && cargo build -vv
# Run: