blob: 961349f3f83d2b2b16b260b1ec4155d539dce797 [file] [log] [blame]
Karl Meakin5c78aa42024-11-17 20:07:56 +00001#!/usr/bin/env bash
2# Copyright 2025 The Hafnium Authors.
3#
4# Use of this source code is governed by a BSD-style
5# license that can be found in the LICENSE file or at
6# https://opensource.org/licenses/BSD-3-Clause.
7
8# This wrapper script runs `clangd` in the Docker container.
9
10set -euo pipefail
11
12SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
13BUILD_DIR="$(dirname ${SCRIPT_DIR})"
14
15# Disable tty allocation, otherwise `clangd` crashes.
16exec "${BUILD_DIR}/run_in_container.sh" -i --tty false clangd "$@"