build.bat 541 B

123456789101112131415
  1. @REM Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. @REM SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. @echo off
  4. @REM start a container, mount current project path to container/mnt
  5. docker run --name=wasm-toolchain-ctr ^
  6. -it -v "%cd%":/mnt ^
  7. --env=PROJ_PATH="%cd%" ^
  8. wasm-toolchain:1.0 ^
  9. /bin/bash -c "./build_wasm.sh %1"
  10. @REM stop and remove wasm-toolchain-ctr container
  11. docker stop wasm-toolchain-ctr>nul 2>nul
  12. docker rm wasm-toolchain-ctr>nul 2>nul