mirror of
https://github.com/haskell/ghcide.git
synced 2024-12-16 22:52:41 +03:00
16 lines
549 B
Bash
Executable File
16 lines
549 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"/../..
|
|
export RULES_HASKELL_EXEC_ROOT=$PWD/
|
|
ENV_FILE=$(mktemp)
|
|
ARGS_FILE=$(mktemp)
|
|
bazel build //compiler/hie-core:hie-core-exe >/dev/null 2>&1
|
|
bazel run --define hie_bios_ghci=True //compiler/damlc:damlc@ghci -- "$ENV_FILE" "$ARGS_FILE" >/dev/null 2>&1
|
|
source "$ENV_FILE"
|
|
export HIE_BIOS_ARGS="$ARGS_FILE"
|
|
./bazel-bin/compiler/hie-core/hie-core-exe $@
|
|
|