# vim: filetype=yaml sw=2
filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.[% c("compress_tar") %]'
version: '[% c("abbrev") %]'
# Notice: we are not enabling submodules because we use the same hacks as
# Mozilla and re-use the LLVM we already build.
# So, be sure to update also wasi-libc and wasi-config when you update this
# git hash!
git_hash: 935fe1acd2fcd7ea4aed2d5ee4527482862b6344
git_url: https://github.com/WebAssembly/wasi-sdk.git
git_submodule: 0

container:
  use_container: 1

var:
  no_crosscompile: 1

input_files:
  - project: container-image
  # We do not use GCC, but we need its libsdc++ to run Clang
  - name: '[% c("var/compiler") %]'
    project: '[% c("var/compiler") %]'
    enable: '[% c("var/linux") %]'
  - name: clang
    project: clang
  - project: llvm-project
    name: clang-source
  - name: cmake
    project: cmake
  - name: ninja
    project: ninja
  - name: python
    project: python
    enable: '[% c("var/linux") %]'
  - name: wasi-config
    project: wasi-config
  - name: wasi-libc
    project: wasi-libc
  # taskcluster/scripts/misc/wasi-sdk.patch from Firefox's source code.
  # Taken from gecko-dev@823106ac4295f822717f5a953047dc89074d632b
  - filename: wasi-sdk.patch
