summaryrefslogtreecommitdiffstats
path: root/byterun/fix_code.c
diff options
context:
space:
mode:
authorGabriel Scherer <gabriel.scherer@gmail.com>2014-05-03 21:21:58 +0000
committerGabriel Scherer <gabriel.scherer@gmail.com>2014-05-03 21:21:58 +0000
commit5ca901cfa6c78365cf829d1c6b4e9efa75a0781b (patch)
treea486a1a237dc0c94524ab3e4d073a90ad2cebbf0 /byterun/fix_code.c
parentb691a28d155c53b4d435855e42dae9fbdf21bbf1 (diff)
ocamlbuild: only show backtrace in verbose mode
Building foo.cmo in an empty directory (so with in particular no foo.ml) currently returns the following output: > Solver failed: > Ocamlbuild cannot find or build foo.ml. A file with such a name > would usually be a source file. I suspect you have given a wrong > target name to Ocamlbuild. > Backtrace: > - Failed to build the target foo.cmo > - Building foo.cmo: > - Failed to build all of these: > - Building foo.ml: > - Failed to build all of these: > - Building foo.mly > - Building foo.mll > - Building foo.mli: > - Building foo.mly > - Building foo.mlpack > - Building foo.mli: > - Building foo.mly > Compilation unsuccessful after building 0 targets (0 cached) in 00:00:00. While the "Solver failed" part is nice and reasonably easy to understand, users report that the "Backtrace" part is confusing (it talks about files they don't know about) -- and it can be so large that the explanation above is completely hidden. This patch disables backtrace-printing by default; it is now only shown when some "-verbose N" (N starting at 1) argument is passed. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14732 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/fix_code.c')
0 files changed, 0 insertions, 0 deletions