fuzz: retrieve the WebAssembly spec repository in build.rs

To avoid the large download size of the spec repository mentioned
[here](https://github.com/bytecodealliance/wasmtime/pull/3124#discussion_r684605984),
this change removes it as a submodule and instead clones it shallowly
when the directory is empty (or not present) when `build.rs` is run.
This commit is contained in:
Andrew Brown
2021-08-10 11:08:30 -07:00
parent 92b382b736
commit 42acb72c54
4 changed files with 33 additions and 6 deletions

4
.gitmodules vendored
View File

@@ -13,7 +13,3 @@
[submodule "crates/wasi-crypto/spec"]
path = crates/wasi-crypto/spec
url = https://github.com/WebAssembly/wasi-crypto.git
[submodule "crates/fuzzing/wasm-spec-interpreter/ocaml/spec"]
path = crates/fuzzing/wasm-spec-interpreter/ocaml/spec
url = https://github.com/WebAssembly/spec
shallow = true