Skip to content

Commit

Permalink
Set cc wrapper env vars when running ghc
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez authored and mergify-bot committed Mar 25, 2021
1 parent 183f7f3 commit 23fc762
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haskell/toolchain.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Rules for defining toolchains"""

load("@bazel_skylib//lib:dicts.bzl", "dicts")
load("@bazel_skylib//lib:paths.bzl", "paths")
load(":ghc_bindist.bzl", "haskell_register_ghc_bindists")
load(
Expand Down Expand Up @@ -82,7 +83,7 @@ def _run_ghc(hs, cc, inputs, outputs, mnemonic, arguments, params_file = None, e
executable = hs.ghc_wrapper,
mnemonic = mnemonic,
progress_message = progress_message,
env = env,
env = dicts.add(env, cc.env),
arguments = [compile_flags_file.path, flagsfile_prefix + flagsfile.path],
execution_requirements = execution_requirements,
)
Expand Down

0 comments on commit 23fc762

Please sign in to comment.