Repository navigation
ocaml: conda-ocaml-* drivers and dune steps run as dx (part of #13154, part of #13770) - #14208
Merged
Merged
Conversation
… part of #13770) ocaml_cc_driver becomes a library linked into dx. dx runs it under the conda-ocaml-{ar,as,cc,ld,mkdll,mkexe,ranlib} argv[0] names and as `dx ocaml_dune`; the OCaml rules point at @dx_prebuilt//:dx. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #13154, part of #13770
cli/ocaml_cc_driveris now arust_libraryexposingrun_tool(argv0, args)andrun_dune(args);driver::runtakes argv0/args instead of readingstd::env.dxdispatches the exact namesconda-ocaml-{ar,as,cc,ld,mkdll,mkexe,ranlib}(argv[0] file stem) and theocaml_dunesubcommand.ocaml/private/toolchain/ocaml.bzlandocaml/private/dune.bzluse_dx = @dx_prebuilt//:dx;cc_driverssymlinks theconda-ocaml-*names to dx; dune actions rundx ocaml_dune MODE ....//ocaml/tests/fixtures/dune_lib:farewell_runs_dx_test.api/starlark.jsonis also regenerated: main was already stale after julia: carry rules_julia#49 entry instead of package_name.patch (part of #11418, part of #6659) #14196 (juliaentryattr), which made//tools/api:api_testfail.msvc_link_exec cannot become a dx subcommand: dx itself links through it on Windows opt builds, so
-Clinker=dxis a cycle whenever dx builds from source. It needs its own asset incli/prebuilt/tools.bzl.Verified (linux_x86_64):
bazel test //cli/ocaml_cc_driver:all //cli/cli:dx_cli_test //ocaml/tests/...: 51 pass, 4 skipped (incompatible); this includesgreet_dune_native_test.bazel test //tools/api:all: pass.bazel build //ocaml:dune //ocaml/private/quality:all //ocaml/private/coverage:all: OK. Wall time after the change was 25.7s (critical path 24.0s). I did not measure the before time separately.bazel cquery 'somepath(//cli/cli:dx, //ocaml/private/toolchain:dune)': empty.tools/dx check --affecteddid not finish within the time budget and was stopped. rustfmt on the touched Rust files is clean.*_consumer_testtargets were not run locally.Still open:
file(prebuilt: argv[0] helpers (buf diff, msvc_link_exec, ocaml_cc_driver, appimage file) run from dx through a launcher shim (part of #13154) #13770)🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K