Skip to content

Commit

Permalink
[flang] Update instructions for a standalone flang build (#68361)
Browse files Browse the repository at this point in the history
I added instructions for setting the environment variable ROOT_DIR.
  • Loading branch information
psteinfeld authored Oct 6, 2023
1 parent 0a2aaab commit d066300
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions flang/docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,14 @@ code is in good shape.
### Building flang standalone
To do the standalone build, start by building flang in tree as described above.
This build is base build for subsequent standalone builds. Start each
standalone build the same way by cloning the source for llvm-project:
This build can be used as the base build for several subsequent standalone
builds. Set the environment variable **ROOT_DIR** to the directory that
contains the subdirectory `build` that was created previously, for example:
```bash
export ROOTDIR=/home/user/root
```
Start each standalone build the same way by cloning the source for
llvm-project:
```bash
mkdir standalone
cd standalone
Expand Down Expand Up @@ -175,7 +181,7 @@ cmake \
ninja
```
To run the flang tests on this build, execute the command in the "flang/build"
To run the flang tests on this build, execute the command in the `flang/build`
directory:
```bash
ninja check-flang
Expand Down

0 comments on commit d066300

Please sign in to comment.