Organisationsocsigenocsigen-dune-rulesbranch/modernizeBuild History

Build History for branch/modernize

Builds (3)
test: cram coverage for the three new gen options Add 4 new cases to test/rules.t/run.t: - --internal-prefix forwards the option to ocsigen-ppx-client. - --subdir wraps every rule in (subdir DIR ...). - --server-objs-dir without --subdir generates explicit %{dep:DIR/Name.cmo} paths. - --server-objs-dir combined with --subdir derives the wrapping prefix from the subdir name, e.g. [Os] -> [os__Name.cmo]. Each new test re-runs gen on the existing test fixture (a.eliom, b.eliom, b.eliomi) so the diff between the default invocation and the option-enabled invocations is easy to read.
ab4d0c
Add --internal-prefix, --subdir, --server-objs-dir options to gen Carries over the three options previously added on the local modernize branch (commits 7952c1b, 64c6a8a, be09df9), adapted to the new sub-command structure introduced upstream: - --internal-prefix PREFIX : pass -internal-prefix to ocsigen-ppx-client to strip a wrapper prefix from .cmo type paths (for compiling wrapped libraries like ocsigen-start). - --subdir DIR : wrap generated rules in (subdir DIR ...) stanzas, for use with (include_subdirs qualified). - --server-objs-dir DIR : emit %{dep:.../<prefix>__<Name>.cmo} paths instead of %{cmo:...}, which resolves ambiguously under (include_subdirs qualified). The module prefix is derived from --subdir. These options are added to the [gen] sub-command. Callers that used the previous flat syntax must now invoke [ocsigen-dune-rules gen ...].
a16e8a
Add --server-objs-dir option for direct .cmo paths When using (include_subdirs qualified), %{cmo:...} resolves to the local (client) cmo instead of the server one. The new --server-objs-dir option generates %{dep:...} with direct paths to server .cmo files in the library's .objs/byte/ directory. The module prefix (e.g. ot__) is derived from --subdir. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
be09df