Skip to content

Commit

Permalink
flambda-backend: Add missing dependencies to Dune files (#889)
Browse files Browse the repository at this point in the history
Precise dependencies seem to be more necessary when compiling with Dune 3.1.1,
presumably due to some change in sandboxing or parallelism.
  • Loading branch information
lukemaurer authored Oct 18, 2022
1 parent 3cd36f0 commit 7fa7f9d
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 107 deletions.
216 changes: 110 additions & 106 deletions otherlibs/dynlink/dune
Original file line number Diff line number Diff line change
Expand Up @@ -226,128 +226,132 @@

(rule
(targets dynlink.cma)
(deps dynlink_internal.cma)
(deps
; Note: Be sure to keep these arguments in dependency order!
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Int_replace_polymorphic_compare.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Binutils.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Local_store.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Build_path_prefix_map.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Config.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Misc.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Warnings.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Arg_helper.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Identifiable.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Numbers.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Profile.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Clflags.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Terminfo.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Location.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Ident.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Longident.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Builtin_attributes.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Compilation_unit.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Linkage_name.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Symbol.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Type_immediacy.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Path.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Attr_helper.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Primitive.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Types.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Syntaxerr.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Bytesections.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Cmi_format.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Debuginfo.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Btype.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Consistbl.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Datarepr.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Load_path.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Persistent_env.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Docstrings.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Ast_helper.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Predef.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Ast_mapper.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Subst.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Env.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Lambda.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Dll.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Instruct.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Meta.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Runtimedef.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Symtable.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Opcodes.cmo
.dynlink_internal.objs/byte/dynlink_types.cmo
.dynlink_internal.objs/byte/dynlink_platform_intf.cmo
.dynlink_internal.objs/byte/dynlink_common.cmo
.dynlink_internal.objs/byte/dynlink.cmo
)
(action
(run %{ocamlc}
-g -a
-ccopt %{read:natdynlinkops}
-o dynlink.cma
; NOTE: Be sure to keep these arguments in dependency order!
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Int_replace_polymorphic_compare.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Binutils.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Local_store.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Build_path_prefix_map.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Config.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Misc.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Warnings.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Arg_helper.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Identifiable.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Numbers.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Profile.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Clflags.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Terminfo.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Location.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Ident.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Longident.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Builtin_attributes.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Compilation_unit.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Linkage_name.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Symbol.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Type_immediacy.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Path.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Attr_helper.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Primitive.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Types.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Syntaxerr.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Bytesections.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Cmi_format.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Debuginfo.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Btype.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Consistbl.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Datarepr.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Load_path.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Persistent_env.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Docstrings.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Ast_helper.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Predef.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Ast_mapper.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Subst.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Env.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Lambda.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Dll.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Instruct.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Meta.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Runtimedef.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Symtable.cmo
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Opcodes.cmo
.dynlink_internal.objs/byte/dynlink_types.cmo
.dynlink_internal.objs/byte/dynlink_platform_intf.cmo
.dynlink_internal.objs/byte/dynlink_common.cmo
.dynlink_internal.objs/byte/dynlink.cmo
%{deps}
)
)
)

(rule
(targets dynlink.cmxa dynlink.a)
(deps dynlink_internal.cmxa)
(deps
; NOTE: Be sure to keep these arguments in dependency order!
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Int_replace_polymorphic_compare.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Binutils.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Local_store.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Build_path_prefix_map.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Config.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Misc.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Warnings.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Arg_helper.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Identifiable.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Numbers.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Profile.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Clflags.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Terminfo.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Location.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Ident.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Longident.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Builtin_attributes.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Compilation_unit.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Linkage_name.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Symbol.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Type_immediacy.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Path.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Attr_helper.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Primitive.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Types.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Syntaxerr.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Bytesections.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Cmi_format.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Debuginfo.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Btype.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Consistbl.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Datarepr.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Load_path.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Persistent_env.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Docstrings.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Ast_helper.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Predef.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Ast_mapper.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Subst.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Env.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Lambda.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Dll.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Instruct.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Meta.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Runtimedef.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Symtable.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Opcodes.cmx
.dynlink_internal.objs/native/dynlink_types.cmx
.dynlink_internal.objs/native/dynlink_platform_intf.cmx
.dynlink_internal.objs/native/dynlink_common.cmx
.dynlink_internal.objs/native/dynlink.cmx
)
(action
(run %{ocamlopt}
-g -a
-ccopt %{read:natdynlinkops}
-o dynlink.cmxa
; NOTE: Be sure to keep these arguments in dependency order!
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Int_replace_polymorphic_compare.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Binutils.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Local_store.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Build_path_prefix_map.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Config.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Misc.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Warnings.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Arg_helper.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Identifiable.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Numbers.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Profile.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Clflags.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Terminfo.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Location.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Ident.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Longident.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Builtin_attributes.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Compilation_unit.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Linkage_name.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Symbol.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Type_immediacy.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Path.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Attr_helper.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Primitive.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Types.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Syntaxerr.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Bytesections.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Cmi_format.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Debuginfo.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Btype.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Consistbl.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Datarepr.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Load_path.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Persistent_env.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Docstrings.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Ast_helper.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Predef.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Ast_mapper.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Subst.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Env.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Lambda.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Dll.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Instruct.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Meta.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Runtimedef.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Symtable.cmx
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Opcodes.cmx
.dynlink_internal.objs/native/dynlink_types.cmx
.dynlink_internal.objs/native/dynlink_platform_intf.cmx
.dynlink_internal.objs/native/dynlink_common.cmx
.dynlink_internal.objs/native/dynlink.cmx
%{deps}
)
)
)
Expand Down
2 changes: 1 addition & 1 deletion runtime/caml/dune
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

(rule
(targets opnames.h)
(deps instruct.h)
(deps instruct.h ../Makefile)
(action (run make -s -C .. caml/opnames.h)))

(rule
Expand Down
3 changes: 3 additions & 0 deletions tools/dune
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@
(rule
(targets ocamlmklibconfig.ml)
(deps
../Makefile.build_config
../Makefile.common
../Makefile.config
../Makefile.config_if_required
../Makefile
Makefile
.depend)
Expand Down

0 comments on commit 7fa7f9d

Please sign in to comment.