Daniel Dunbar | 2adb2a5 | 2011-11-03 17:56:24 +0000 | [diff] [blame^] | 1 | =pod |
| 2 | |
| 3 | =head1 NAME |
| 4 | |
| 5 | llvm-build - LLVM Project Build Utility |
| 6 | |
| 7 | =head1 SYNOPSIS |
| 8 | |
| 9 | B<llvm-build> [I<options>] |
| 10 | |
| 11 | =head1 DESCRIPTION |
| 12 | |
| 13 | B<llvm-build> is a tool for working with LLVM projects that use the LLVMBuild |
| 14 | system for describing their components. |
| 15 | |
| 16 | At heart, B<llvm-build> is responsible for loading, verifying, and manipulating |
| 17 | the project's component data. The tool is primarily designed for use in |
| 18 | implementing build systems and tools which need access to the project structure |
| 19 | information. |
| 20 | |
| 21 | =head1 OPTIONS |
| 22 | |
| 23 | =over |
| 24 | |
| 25 | =item B<-h>, B<--help> |
| 26 | |
| 27 | Print the builtin program help. |
| 28 | |
| 29 | =item B<--source-root>=I<PATH> |
| 30 | |
| 31 | If given, load the project at the given source root path. If this option is not |
| 32 | given, the location of the project sources will be inferred from the location of |
| 33 | the B<llvm-build> script itself. |
| 34 | |
| 35 | =item B<--print-tree> |
| 36 | |
| 37 | Print the component tree for the project. |
| 38 | |
| 39 | =item B<--write-llvmbuild> |
| 40 | |
| 41 | Write out new I<LLVMBuild.txt> files based on the loaded components. This is |
| 42 | useful for auto-upgrading the schema of the files. |
| 43 | |
| 44 | =item B<--llvmbuild-source-root>=I<PATH> |
| 45 | |
| 46 | If given, expect the I<LLVMBuild> files for the project to be rooted at the |
| 47 | given path, instead of inside the source tree itself. This option is primarily |
| 48 | designed for use in conjunction with B<--write-llvmbuild> to test changes to |
| 49 | I<LLVMBuild> schema. |
| 50 | |
| 51 | =back |
| 52 | |
| 53 | =head1 EXIT STATUS |
| 54 | |
| 55 | B<llvm-build> exits with 0 if operation was successful. Otherwise, it will exist |
| 56 | with a non-zero value. |
| 57 | |
| 58 | =head1 AUTHOR |
| 59 | |
| 60 | Maintained by the LLVM Team (L<http://llvm.org/>). |
| 61 | |
| 62 | =cut |