From d75a9a845fbaaa8274e221eec981c78d9c11025f Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 12 May 2020 11:18:11 -0700 Subject: [PATCH] Add some docs for building from source and binary. fixes #10063 (#420) --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 840b195..1e6fe00 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,19 @@ released. You can also set up Emscripten from source, without the pre-built SDK, see "Installing from Source" below. -## Downloads +## Downloads / How do I get the latest Emscripten build? To get started with Emscripten development, see the [Emscripten website documentation](https://emscripten.org/docs/getting_started/downloads.html). +That explains how to use the emsdk to get the latest binary builds (without +compiling from source). Basically, that amounts to + +``` +./emsdk install latest +./emsdk activate latest +``` + ## SDK Concepts The Emscripten SDK is effectively a small package manager for tools that are @@ -118,7 +126,7 @@ Emsdk contains a history of old compiler versions that you can use to maintain your migration path. Type `emsdk list --old` to get a list of archived tool and SDK versions, and `emsdk install ` to install it. -### I want to build from source/I want to download a precompiled build! +### I want to build from source! Some Emsdk Tool and SDK targets refer to packages that are precompiled, and no compilation is needed when installing them. Other Emsdk Tools and SDK @@ -132,6 +140,7 @@ To obtain and build latest upstream wasm SDK from source, run ``` emsdk install sdk-upstream-master-64bit +emsdk activate sdk-upstream-master-64bit ``` You can use this target for example to bootstrap developing patches to LLVM,