Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005655OCamlOCamlbuild (the tool)public2012-06-19 10:302012-07-09 15:15
Reporterygrek 
Assigned Toxclerc 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version3.12.1 
Target Version4.00.0+devFixed in Version4.00.0+dev 
Summary0005655: ocamlbuild doesn't pass cflags to ocaml compilers when building C stubs
DescriptionThis can be useful for example to pass -verbose flag to see how C compiler is called.
Steps To ReproduceSTR:
$ 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"
TagsNo tags attached.
Attached Files

- Relationships

-  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
Powered by Mantis Bugtracker