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