# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

linux64-clang/opt:
    description: "Clang toolchain build"
    treeherder:
        kind: build
        platform: linux64/opt
        symbol: Cc(Clang)
        tier: 1
    run:
        using: toolchain-script
        script: build-clang-linux.sh
    worker-type: aws-provisioner-v1/gecko-{level}-b-linux
    worker:
        implementation: docker-worker
        docker-image: {in-tree: desktop-build}
        max-run-time: 36000
    when:
        files-changed:
            - 'build/build-clang/**'
            - 'taskcluster/scripts/misc/build-clang-linux.sh'
            - 'taskcluster/taskgraph/transforms/job/toolchain.py'

linux64-gcc/opt:
    description: "GCC toolchain build"
    treeherder:
        kind: build
        platform: linux64/opt
        symbol: Cc(GCC)
        tier: 1
    run:
        using: toolchain-script
        script: build-gcc-linux.sh
    worker-type: aws-provisioner-v1/gecko-{level}-b-linux
    worker:
        implementation: docker-worker
        docker-image: {in-tree: desktop-build}
        max-run-time: 36000
    when:
        files-changed:
            - 'build/unix/build-gcc/**'
            - 'taskcluster/scripts/misc/build-gcc-linux.sh'
            - 'taskcluster/taskgraph/transforms/job/toolchain.py'

linux64-binutils/opt:
    description: "Binutils toolchain build"
    treeherder:
        kind: build
        platform: linux64/opt
        symbol: Cc(binutils)
        tier: 1
    run:
        using: toolchain-script
        script: build-binutils-linux.sh
    worker-type: aws-provisioner-v1/gecko-{level}-b-linux
    worker:
        implementation: docker-worker
        docker-image: {in-tree: desktop-build}
        max-run-time: 36000
    when:
        files-changed:
            - 'build/unix/build-binutils/**'
            - 'taskcluster/scripts/misc/build-binutils-linux.sh'
            - 'taskcluster/taskgraph/transforms/job/toolchain.py'