[bazel] Update README.md (#1427)

Provides simpler using and less errors
This commit is contained in:
Kirill
2024-07-24 22:36:24 +03:00
committed by GitHub
parent 0b3bcbc3b0
commit cc7ef523f6

View File

@@ -4,12 +4,12 @@
In `WORKSPACE` file, put: In `WORKSPACE` file, put:
```starlark ```starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
http_archive( git_repository(
name = "emsdk", name = "emsdk",
sha256 = "d55e3c73fc4f8d1fecb7aabe548de86bdb55080fe6b12ce593d63b8bade54567", remote = "https://github.com/emscripten-core/emsdk.git",
strip_prefix = "emsdk-3891e7b04bf8cbb3bc62758e9c575ae096a9a518/bazel", tag = "3.1.64",
url = "https://github.com/emscripten-core/emsdk/archive/3891e7b04bf8cbb3bc62758e9c575ae096a9a518.tar.gz", strip_prefix = "bazel",
) )
load("@emsdk//:deps.bzl", emsdk_deps = "deps") load("@emsdk//:deps.bzl", emsdk_deps = "deps")