| Anonymous | Login | Signup for a new account | 2013-05-25 21:47 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 | |||||||
| 0005655 | OCaml | OCamlbuild (the tool) | public | 2012-06-19 10:30 | 2012-07-09 15:15 | |||||||
| Reporter | ygrek | |||||||||||
| Assigned To | xclerc | |||||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||||||
| Status | resolved | Resolution | fixed | |||||||||
| Platform | OS | OS Version | ||||||||||
| Product Version | 3.12.1 | |||||||||||
| Target Version | 4.00.0+dev | Fixed in Version | 4.00.0+dev | |||||||||
| Summary | 0005655: ocamlbuild doesn't pass cflags to ocaml compilers when building C stubs | |||||||||||
| Description | This can be useful for example to pass -verbose flag to see how C compiler is called. | |||||||||||
| Steps To Reproduce | STR: $ touch src_c.c src.ml $ echo src_c.o > libsrc_stubs.clib $ ocamlbuild -classic-display -clean && ocamlbuild -classic-display -cflags -verbose libsrc_stubs.a src.cmx /usr/bin/ocamlc.opt -c src_c.c /usr/bin/ocamlmklib -o src_stubs src_c.o /usr/bin/ocamldep.opt -modules src.ml > src.ml.depends /usr/bin/ocamlc.opt -c -verbose -o src.cmo src.ml /usr/bin/ocamlopt.opt -c -verbose -o src.cmx src.ml + /usr/bin/ocamlopt.opt -c -verbose -o src.cmx src.ml + as -o 'src.o' '/tmp/camlasm5bc13e.s' ACR: -verbose is passed only when compiling ml source, but not C source EXR: -verbose passed to all invocations of 'ocamlc -c'. NB help says: " -cflag <flag> Add to ocamlc compile flags" | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
Notes |
|
|
(0007666) xclerc (developer) 2012-07-09 12:08 |
Fixed in trunk (revision 12670) and 4.00 (revision 12671) branches. |
|
(0007668) mehdi (reporter) 2012-07-09 14:56 |
I might have missed some bit (I didn't check the source, tbh) but isn't the same fix needed for -lflags? |
|
(0007670) xclerc (developer) 2012-07-09 15:15 |
You are right, it cannot hurt (revisions 12675 for trunk, and 12676 for 4.00). |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-06-19 10:30 | ygrek | New Issue | |
| 2012-07-04 16:58 | doligez | Assigned To | => xclerc |
| 2012-07-04 16:58 | doligez | Status | new => assigned |
| 2012-07-04 17:18 | doligez | Target Version | => 4.00.0+dev |
| 2012-07-09 12:08 | xclerc | Note Added: 0007666 | |
| 2012-07-09 12:08 | xclerc | Status | assigned => resolved |
| 2012-07-09 12:08 | xclerc | Fixed in Version | => 4.00.0+dev |
| 2012-07-09 12:08 | xclerc | Resolution | open => fixed |
| 2012-07-09 14:56 | mehdi | Note Added: 0007668 | |
| 2012-07-09 15:15 | xclerc | Note Added: 0007670 | |
| Copyright © 2000 - 2011 MantisBT Group |