mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
878429e3bf
copyright update 2020 * update template * run script: `dade-copyright-headers update .` * update script * manual adjustments * exclude frozen proto files from further header checks (by adding NO_AUTO_COPYRIGHT files)
15 lines
604 B
Bash
15 lines
604 B
Bash
#!/usr/bin/env bash
|
|
# Copyright (c) 2020 The DAML Authors. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
ENV_FILE=$1
|
|
ARGS_FILE=$2
|
|
RULES_HASKELL_EXEC_ROOT=bazel-$(basename ${BUILD_WORKSPACE_DIRECTORY})/
|
|
# Setting -pgm* flags explicitly has the unfortunate side effect
|
|
# of resetting any program flags in the GHC settings file. So we
|
|
# restore them here. See
|
|
# https://ghc.haskell.org/trac/ghc/ticket/7929.
|
|
PGM_ARGS="-pgma {CC} -pgmc {CC} -pgml {CC} -pgmP {CC} -optc-fno-stack-protector -optP-E -optP-undef -optP-traditional"
|
|
echo "{ENV}" > "$ENV_FILE"
|
|
echo $PGM_ARGS "{ARGS}" > "$ARGS_FILE"
|