简体   繁体   English

如何使用ocamlbuild构建基于utop的自定义顶层?

[英]How to build a custom utop-based toplevel with ocamlbuild?

I want to create a utop-based toplevel for my project, which is built by ocamlbuild . 我想为我的项目创建一个基于utop的顶层,该顶层由ocamlbuild

However, ocamlbuild supports only mktoplevel, built from *.mltop . 但是, ocamlbuild仅支持从*.mltop构建的*.mltop It doesn't mention utop anywhere in the docs. 它在文档的任何地方都没有提到utop

Also, the utop manual explains just toplevel creation by jbuilder and doesn't even mention ocamlbuild . 另外, utop手册仅解释了jbuilder顶级创建,甚至没有提到ocamlbuild It also explains building via ocamlfind , but strongly discourages that approach. 它还说明了通过ocamlfind进行ocamlfind ,但强烈建议不要采用这种方法。

So how should I create my utop-based toplevel? 那么我应该如何创建基于utop的顶层呢?

Or, is this a totally wrong approach and I should do something different to get my utop-based toplevel. 或者,这是完全错误的方法,我应该做一些不同的事情以获取基于utop的顶层。 If so, what is the recommended way? 如果是这样,推荐的方法是什么?

The custom-utop example from the utop sources used to be built with ocamlbuild and was later to jbuilder. 来自utop来源的custom-utop示例曾经使用ocamlbuild构建,后来被jbuilder使用。 See this older version for an example. 有关示例,请参见此旧版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM