Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006200OCamlconfigure and build/installpublic2013-10-02 11:242017-03-07 13:49
Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
PlatformOSOS Version
Product Version 
Target VersionlaterFixed in Version 
Summary0006200: Store local configuration in an external file, not in the compilers
DescriptionSome local configuration is stored directly in utils/ (obtained from utils/config.mlp mostly by substituting variables from config/Makefile).

This is another point preventing the bootstrapping of ocamlc to be idempotent on various machines/working copies (see also 0006199). Moreover, it makes it difficult to tweak those variables (for instance to use a different C compiler, or to change the standard_runtime path in order to relocate the toolchain in the filesystem).

Wouldn't it be better to keep all these variables in an external text file, parsed by ocamlc/ocamlopt? This file could be located (by default) in the same directory as the compiler itself (or at a fixed relative path from it), and an environment variable could be used to specify a different file. The overhead of reading this external file is probably small compared to the I/O operations required by the compiler (in particular, loading many .cmi files). (One problem could be that other tools linking against compilerlib would then also depend on this external file.)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-10-02 11:24 frisch New Issue
2014-06-04 22:09 doligez Severity minor => tweak
2014-06-04 22:09 doligez Status new => acknowledged
2014-06-04 22:10 doligez Target Version => 4.03.0+dev / +beta1
2015-12-02 18:38 frisch Target Version 4.03.0+dev / +beta1 => later
2017-02-23 16:38 doligez Category OCaml internal build/install (Makefiles, configure) => configure and build/install
2017-03-07 13:49 shinwell Severity tweak => feature

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker