Skip to content

Commit d066300

Browse files
authored
[flang] Update instructions for a standalone flang build (#68361)
I added instructions for setting the environment variable ROOT_DIR.
1 parent 0a2aaab commit d066300

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

flang/docs/GettingStarted.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,14 @@ code is in good shape.
141141
142142
### Building flang standalone
143143
To do the standalone build, start by building flang in tree as described above.
144-
This build is base build for subsequent standalone builds. Start each
145-
standalone build the same way by cloning the source for llvm-project:
144+
This build can be used as the base build for several subsequent standalone
145+
builds. Set the environment variable **ROOT_DIR** to the directory that
146+
contains the subdirectory `build` that was created previously, for example:
147+
```bash
148+
export ROOTDIR=/home/user/root
149+
```
150+
Start each standalone build the same way by cloning the source for
151+
llvm-project:
146152
```bash
147153
mkdir standalone
148154
cd standalone
@@ -175,7 +181,7 @@ cmake \
175181
ninja
176182
```
177183
178-
To run the flang tests on this build, execute the command in the "flang/build"
184+
To run the flang tests on this build, execute the command in the `flang/build`
179185
directory:
180186
```bash
181187
ninja check-flang

0 commit comments

Comments
 (0)