You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4421 Reporter: jessicah Assigned to: ertai Status: closed (set by @xavierleroy on 2011-05-29T10:20:01Z) Resolution: fixed Priority: normal Severity: major Version: 3.10.0 Fixed in version: 3.11.2+dev Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues Related to:#4613
Bug description
When trying to compile C files as part of an ocaml native project, ocamlbuild always uses ocamlc.opt to compile the C files, which is incorrect. The compiler options passed by ocamlopt.opt and ocamlc.opt are different for compiling C files, and this difference ended up causing a lot of problems trying to track down where the errors were coming from trying to link my project.
Even specifying in my _tags file:
true: native, -byte
false: byte
it still refused to build C files with ocamlopt.opt. In the end, I had to override the compiler with -cc, and pass the options to the C compiler ocamlopt would normally pass to gcc with -ccopt.
The text was updated successfully, but these errors were encountered:
Original bug ID: 4421
Reporter: jessicah
Assigned to: ertai
Status: closed (set by @xavierleroy on 2011-05-29T10:20:01Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.10.0
Fixed in version: 3.11.2+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Related to: #4613
Bug description
When trying to compile C files as part of an ocaml native project, ocamlbuild always uses ocamlc.opt to compile the C files, which is incorrect. The compiler options passed by ocamlopt.opt and ocamlc.opt are different for compiling C files, and this difference ended up causing a lot of problems trying to track down where the errors were coming from trying to link my project.
Even specifying in my _tags file:
true: native, -byte
false: byte
it still refused to build C files with ocamlopt.opt. In the end, I had to override the compiler with -cc, and pass the options to the C compiler ocamlopt would normally pass to gcc with -ccopt.
The text was updated successfully, but these errors were encountered: