build_spec_interpreter.sh 625 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. #
  3. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  4. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  5. #
  6. rm -fr spec
  7. # check spec test cases for GC
  8. git clone -b main --single-branch https://github.com/WebAssembly/gc.git spec
  9. pushd spec
  10. git restore . && git clean -ffd .
  11. # Reset to commit: "[test] Unify the error message."
  12. git reset --hard 0caaadc65b5e1910512d8ae228502edcf9d60390
  13. git apply ../../../wamr-test-suites/spec-test-script/gc_ignore_cases.patch
  14. # Set OCaml compiler environment
  15. eval $(opam config env)
  16. echo "compile the reference interpreter"
  17. pushd interpreter
  18. make
  19. popd