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: 6076 Reporter:@avsm Assigned to:@lefessan Status: closed (set by @xavierleroy on 2015-12-11T18:21:02Z) Resolution: won't fix Priority: normal Severity: minor Fixed in version: 4.02.0+dev Category: ~DO NOT USE (was: OCaml general)
Bug description
I ran into this error when trying to activate warnings-as-errors from an environment variable (so that it would be active during some builds, but not others). I'm not sure if this is expected behaviour or not, but I couldn't find any documentation about OCAMLPARAM in the manual repository. It does deviate from OCAMLRUNPARAM's format though.
$ env OCAMLPARAM="we=+A" ocamlbuild foo.native
Illegal syntax of OCAMLPARAM: no '_' separator found
Command exited with code 2.
$ env OCAMLPARAM="_,we=+A" ocamlbuild foo.native
The text was updated successfully, but these errors were encountered:
Indeed, OCAMLPARAM does not follow anymore OCAMLRUNPARAM syntax. It was necessary because the user has to specify how the arguments that he is adding and the arguments from the command line shoud combine. The "" shows the position of the arguments from the command line, so that arguments in OCAMLPARAM before the "" are interpreted before them, and arguments after the "_" are interpreted after them.
This way, you can both change the defaults (before the ""), and force the result (after the "").
Original bug ID: 6076
Reporter: @avsm
Assigned to: @lefessan
Status: closed (set by @xavierleroy on 2015-12-11T18:21:02Z)
Resolution: won't fix
Priority: normal
Severity: minor
Fixed in version: 4.02.0+dev
Category: ~DO NOT USE (was: OCaml general)
Bug description
I ran into this error when trying to activate warnings-as-errors from an environment variable (so that it would be active during some builds, but not others). I'm not sure if this is expected behaviour or not, but I couldn't find any documentation about OCAMLPARAM in the manual repository. It does deviate from OCAMLRUNPARAM's format though.
$ env OCAMLPARAM="we=+A" ocamlbuild foo.native
Illegal syntax of OCAMLPARAM: no '_' separator found
Command exited with code 2.
$ env OCAMLPARAM="_,we=+A" ocamlbuild foo.native
The text was updated successfully, but these errors were encountered: