Skip to content

Commit

Permalink
bump skylib version; fix ppx transform bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileink committed Jan 12, 2024
1 parent 7ab9f4c commit b7c236b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ module(

bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
2 changes: 2 additions & 0 deletions ocaml/_rules/impl_ppx_transform.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def impl_ppx_transform(rule, ctx, srcfile, dst):

## FIXME: add ctx.attr._ppx_print as build flag, ctx.attr.ppx_print as string override
if hasattr(ctx.attr, "ppx_print"):
# fail(ctx.attr.ppx_print[BuildSettingInfo].value)

# rule == ocaml_module, ocaml_signature
if ctx.attr.ppx_print[BuildSettingInfo].value == "binary":
if hasattr(ctx.attr, "args"):
Expand Down

0 comments on commit b7c236b

Please sign in to comment.