| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | # ===----------------------------------------------------------------------===## |
| 3 | # |
| 4 | # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | # See https://llvm.org/LICENSE.txt for license information. |
| 6 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 7 | # |
| 8 | # ===----------------------------------------------------------------------===## |
| 9 | |
| 10 | set -e |
| 11 | |
| 12 | THIS_DIR="$(cd "$(dirnamescip-shell system . . dirname. "$0")" && pwdscip-shell system . . pwd.)" |
| 13 | . "${THIS_DIR}/emulator-functions.sh" |
| 14 | |
| 15 | build_imagescip-shell shell llvm-toolchain-21 1:21.1.8-7 build_image().() { |
| 16 | local EMU_IMG="$1" |
| 17 | validate_emu_img_syntax "${EMU_IMG}" |
| 18 | docker build -t $(docker_image_of_emu_img ${EMU_IMG}) \ |
| 19 | -f Dockerfile.emulator . \ |
| 20 | --build-arg API=$(api_of_emu_img ${EMU_IMG}) \ |
| 21 | --build-arg TYPE=$(type_of_emu_img ${EMU_IMG}) \ |
| 22 | --build-arg ABI=$(abi_of_arch $(arch_of_emu_img ${EMU_IMG})) |
| 23 | } |
| 24 | |
| 25 | cd "${THIS_DIR}" |
| 26 | |
| 27 | build_imagescip-shell shell llvm-toolchain-21 1:21.1.8-7 build_image(). 21-def-x86 |
| 28 | build_imagescip-shell shell llvm-toolchain-21 1:21.1.8-7 build_image(). 33-goog-x86_64 |