OCaml Forge

Detail: [#1215] Pack: true and FilesAB: foo.ml.ab do not work properly

Bugs: Browse | Download .csv | Monitor

[#1215] Pack: true and FilesAB: foo.ml.ab do not work properly

Date:
2012-09-06 13:19
Priority:
3
State:
Open
Submitted by:
Hezekiah Carty (hcarty)
Assigned to:
Sylvain Le Gall (gildor-admin)
Product:
OASIS
Due in version:
None
Resolution:
None
Severity:
normal
Version:
0.3.0~rc1
Component:
OASIS
Operating System:
All
 
URL:
Summary:
Pack: true and FilesAB: foo.ml.ab do not work properly

Detailed description
If a module is listed in FilesAB and the resulting module is listed under Modules in a Library section with Pack: true the module will not be compiled with -for-pack.

An example:

FilesAB: src/config.ml.ab

Library: foo
Path: src/
Pack: true
Modules: Config

Compilation will fail in this case due to -for-pack not being specified when config.ml is compiled.

Followup

Message
Date: 2012-09-06 14:48
Sender: Hezekiah Carty

Thanks for the suggestions. I had a custom line in _tags outside of the OASIS_START/OASIS_START lines, but adding config.mli is cleaner. It does work when config.mli exists.

Including generated files when guessing module names is probably the right way to fix this generally.
Date: 2012-09-06 14:09
Sender: Sylvain Le Gall

Good catch.

Possible solutions are:
- to include generated files when trying to guess module name.
- maybe adding src/config.mli will temporarily solve the problem.

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2012-09-06 14:09gildor-admin