llvm.org GIT mirror llvm / cfdd779
gn build: Fix path to gn.py in docs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351088 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 # Since this can't be at the toplevel, you either need to pass
11 # `--dotfile=llvm/utils/gn/.gn --root=.` to the `gn gen` command
2 # or use llvm/utils/gn/build/gn.py which calls gn with these two flags added.
2 # or use llvm/utils/gn/gn.py which calls gn with these two flags added.
33
44 buildconfig = "//llvm/utils/gn/build/BUILDCONFIG.gn"
55
4343
4444 #. Obtain a `gn binary `_.
4545
46 #. In the root of the monorepo, run `llvm/utils/gn/build/gn.py gen out/gn`.
46 #. In the root of the monorepo, run `llvm/utils/gn/gn.py gen out/gn`.
4747 `out/gn` is the build directory, it can have any name, and you can have as
4848 many as you want, each with different build settings. (The `gn.py` script
4949 adds `--dotfile=llvm/utils/gn/.gn --root=.` and just runs regular `gn`;
5656 By default, you get a release build with assertions enabled that targets
5757 the host arch. You can set various build options by editing `out/gn/args.gn`,
5858 for example putting `is_debug = true` in there gives you a debug build. Run
59 `llvm/utils/gn/build/gn.py args --list out/gn` to see a list of all possible
59 `llvm/utils/gn/gn.py args --list out/gn` to see a list of all possible
6060 options. After touching `out/gn/args.gn`, just run ninja, it will re-invoke gn
6161 before starting the build.
6262