Skip to content

Commit 96a1095

Browse files
committed
Add cc toolchain to _ahc_haskell_toolchain rule
1 parent b10973c commit 96a1095

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

haskell/toolchain.bzl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,11 @@ _ahc_haskell_toolchain = rule(
541541
_haskell_toolchain_impl,
542542
attrs = dict(
543543
common_attrs,
544+
_cc_toolchain = attr.label(
545+
default = Label(
546+
"@rules_cc//cc:current_cc_toolchain",
547+
),
548+
),
544549
_exec_nodejs_toolchain = attr.label(
545550
default = Label("@rules_haskell//haskell:current_nodejs_toolchain"),
546551
cfg = "exec",
@@ -554,6 +559,8 @@ _ahc_haskell_toolchain = rule(
554559
cfg = "exec",
555560
),
556561
),
562+
toolchains = use_cc_toolchain(),
563+
fragments = ["cpp"],
557564
)
558565

559566
_haskell_toolchain = rule(

0 commit comments

Comments
 (0)