Skip to content

Commit

Permalink
[docs] Clarify the sense of --compile-command
Browse files Browse the repository at this point in the history
In retrospect, it seems "obvious" that the sense of the return code is
the same as if it crashed on "interesting" inputs. But that didn't stop
me from spending more time than I care to admit verifying this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264119 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chisophugis committed Mar 23, 2016
1 parent c874029 commit 806688c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/CommandGuide/bugpoint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@ OPTIONS
**--compile-command** *command*

This option defines the command to use with the **--compile-custom**
option to compile the bitcode testcase. This can be useful for
option to compile the bitcode testcase. The command should exit with a
failure exit code if the file is "interesting" and should exit with a
success exit code (i.e. 0) otherwise (this is the same as if it crashed on
"interesting" inputs).

This can be useful for
testing compiler output without running any link or execute stages. To
generate a reduced unit test, you may add CHECK directives to the
testcase and pass the name of an executable compile-command script in this form:
Expand Down

0 comments on commit 806688c

Please sign in to comment.