blob: ec0421bcff5c7d4eb98e5cd0a6a0208113f95be7 [file] [log] [blame]
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/go/toolchain.gni")
import("//build/toolchain/clang_toolchain.gni")
import("//build/toolchain/concurrent_jobs.gni")
declare_args() {
# Maximum number of Go processes to run in parallel.
concurrent_go_jobs = default_concurrent_jobs.go
}
if (current_toolchain == default_toolchain) {
pool("pool") {
depth = concurrent_go_jobs
}
}
# A toolchain dedicated to processing Go code.
# The only targets in this toolchain are action() targets, so it
# has no real tools. But every toolchain needs stamp and copy.
toolchain("gopher") {
tool("stamp") {
command = stamp_command
description = stamp_description
}
tool("copy") {
command = copy_command
description = copy_description
}
}