| Anonymous | Login | Signup for a new account | 2013-05-25 06:06 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0005484 | OCaml | OCaml general | public | 2012-01-19 09:50 | 2012-01-19 13:36 | |||||||
| Reporter | barnier | |||||||||||
| Assigned To | lefessan | |||||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||||||
| Status | resolved | Resolution | won't fix | |||||||||
| Platform | amd64 | OS | Debian Linux | OS Version | 3.1 | |||||||
| Product Version | 3.12.1 | |||||||||||
| Target Version | Fixed in Version | |||||||||||
| Summary | 0005484: -for-pack option does not work if placed after the source file on the compilation command line | |||||||||||
| Description | The -for-pack option is sensitive to the order on the compilation command line and *must* be placed before the .ml source file, but AFAIK it is not mentioned in the documentation - so I assumed it's more a bug than a feature. | |||||||||||
| Steps To Reproduce | [a.ml] type t = float ocamlopt.opt -c a.ml -for-pack P ocamlopt.opt -o p.cmx a.cmx -pack File "p.cmx", line 1, characters 0-1: Error: File a.cmx was not compiled with the `-for-pack P' option | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
Notes |
|
|
(0006727) lefessan (developer) 2012-01-19 13:36 |
That's true for all options used with "-c": when a source filename is found on the command-line, the compiler immediatly compiles it, taking into account only arguments given before it (i.e. -pp, -I, etc. are not taken into account if placed after the filename). |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-01-19 09:50 | barnier | New Issue | |
| 2012-01-19 13:36 | lefessan | Note Added: 0006727 | |
| 2012-01-19 13:36 | lefessan | Status | new => resolved |
| 2012-01-19 13:36 | lefessan | Resolution | open => won't fix |
| 2012-01-19 13:36 | lefessan | Assigned To | => lefessan |
| Copyright © 2000 - 2011 MantisBT Group |