Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/labels.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
//ocaml:bisect_ppx_rewriter alias
//ocaml:dune alias
//ocaml:emitter alias
//ocaml:exec_toolchain_type toolchain_type
//ocaml:profile_toolchain_type toolchain_type
//ocaml:toolchain_type toolchain_type
//php:exec_toolchain_type toolchain_type
Expand Down
1 change: 1 addition & 0 deletions docs/supported-surface.md
Original file line number Diff line number Diff line change
Expand Up @@ -7402,6 +7402,7 @@ Use a toolchain type when you register your own toolchain.
- `@rules_dx//haskell:toolchain_type`
- `@rules_dx//lua:toolchain_type`
- `@rules_dx//msix:toolchain_type`
- `@rules_dx//ocaml:exec_toolchain_type`
- `@rules_dx//ocaml:profile_toolchain_type`
- `@rules_dx//ocaml:toolchain_type`
- `@rules_dx//php:exec_toolchain_type`
Expand Down
4 changes: 4 additions & 0 deletions ocaml/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ toolchain_type(name = "toolchain_type")

toolchain_type(name = "profile_toolchain_type")

# Resolves only on an exec platform with an OCaml cell, so dune actions never pick another exec platform.
# Every consumer loads this package during toolchain resolution, so it must load no @rules_ocaml file.
toolchain_type(name = "exec_toolchain_type")

alias(
name = "bisect_ppx_rewriter",
actual = "//ocaml/private/coverage:bisect_ppx_rewriter",
Expand Down
3 changes: 0 additions & 3 deletions ocaml/private/toolchain/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ exports_files([
"repos.bzl",
])

# Resolves only on an exec platform with an OCaml cell, so dune actions never pick another exec platform.
toolchain_type(name = "exec_toolchain_type")

cell_settings(
name = "cell",
cells = OCAML_CELLS,
Expand Down
2 changes: 1 addition & 1 deletion ocaml/private/toolchain/repos.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ HUB_NAME = "dx_ocaml_toolchains"

VERSION_FILE = "DX_OCAML_VERSION"

EXEC_TOOLCHAIN_TYPE = str(Label("//ocaml/private/toolchain:exec_toolchain_type"))
EXEC_TOOLCHAIN_TYPE = str(Label("//ocaml:exec_toolchain_type"))

EMITTERS = {
"sys": struct(
Expand Down
Loading