blob: acac47dbff2a52c7df66d0d6be1c478675fc3c76 [file] [log] [blame] [edit]
#!/usr/bin/env bash
# Copyright 2021 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.
set -euo pipefail
cd "$(dirname "$0")"
source ../../tools/devshell/lib/vars.sh
fx ninja -C "$FUCHSIA_BUILD_DIR" host_x64/gen/third_party/go/makefuchsia.stamp
"${PREBUILT_PYTHON3_DIR}/bin/python3.8" regen-api.py \
--api-file=api/fuchsia.txt \
--go-root="$FUCHSIA_BUILD_DIR"/host-tools/goroot