Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install utils/config.cmi so OCaml programs can query their environment #4653

vicuna opened this issue Nov 26, 2008 · 2 comments


None yet
2 participants
Copy link

commented Nov 26, 2008

Original bug ID: 4653
Reporter: @dra27
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2015-12-11T18:04:39Z)
Resolution: fixed
Priority: normal
Severity: tweak
Version: 3.11.0+beta
Fixed in version: 4.00.0+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @rixed @ygrek @glondu @dbuenzli

Bug description

toplevellib.cma contains utils/config.cmo which contains useful information for OCaml based installers. If utils/config.cmi is installed as well then it would be possible to access this information.

Additional information

This allows, for example, extlib's installer to detect the correct extension for native code files (.o or .obj) without having to grep the output of ocamlc -config


This comment has been minimized.

Copy link

commented Jan 18, 2009

Comment author: @glondu

This might also be useful when writing ocamlbuild plugins, by the way.


This comment has been minimized.

Copy link

commented May 24, 2012

Comment author: @xavierleroy

Upcoming release 4.00 installs a big chunk of compiler internal files in ocamlc -where /compiler-libs. You should find everything you need there.

@vicuna vicuna closed this Dec 11, 2015

@vicuna vicuna added the bug label Mar 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.