Skip to content

Commit

Permalink
Add hs.toolchain.files to c2hs inputs
Browse files Browse the repository at this point in the history
The c2hs action depends on `lib/include/ghcplatform.h` and
`lib/include/ghcversion.h`.
  • Loading branch information
aherrmann committed Feb 8, 2021
1 parent aa4258e commit 4d0d4e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions haskell/c2hs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def _c2hs_library_impl(ctx):
depset([chs_file]),
depset(dep_chi_files),
depset(cc.files),
depset(hs.toolchain.files),
set.to_depset(version_macro_headers),
inputs,
]),
Expand Down
6 changes: 5 additions & 1 deletion haskell/ghc_bindist.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,11 @@ DISTDIR="$( dirname "$(resolved="$0"; cd "$(dirname "$resolved")"; while tmp="$(
tools = [":bin"],
libraries = "toolchain_libraries",
# See Note [GHC toolchain files]
files = [":lib/settings"],
files = [
":lib/settings",
":lib/include/ghcplatform.h",
":lib/include/ghcversion.h",
],
version = repr(ctx.attr.version),
static_runtime = os == "windows",
fully_static_link = False, # XXX not yet supported for bindists.
Expand Down

0 comments on commit 4d0d4e7

Please sign in to comment.