Skip to content

Commit 64c6162

Browse files
fixup! Guard for OXCAML
1 parent 82209ef commit 64c6162

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/loader/cmt.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,14 @@ let read_value_binding env parent id_attrs vb =
129129
let read_value_bindings env parent vbs =
130130
let container = (parent : Identifier.Signature.t :> Identifier.LabelParent.t) in
131131
let id_attrs =
132+
#if defined OXCAML
132133
vbs |> let_bound_idents_with_modes_sorts_and_checks |> List.fold_left (fun tbl (ident, _, zero_alloc) ->
133134
match Doc_attr.lang_value_attr_of_zero_alloc zero_alloc with
134135
| None -> tbl
135136
| Some attr -> Ident.add ident [attr] tbl) Ident.empty
137+
#else
138+
Ident.empty
139+
#endif
136140
in
137141
let lookup_attr_by_id id =
138142
match Ident.find_same id id_attrs with

0 commit comments

Comments
 (0)