[flang-commits] [flang] d066300 - [flang] Update instructions for a standalone flang build (#68361)

via flang-commits flang-commits at lists.llvm.org
Fri Oct 6 06:49:52 PDT 2023


Author: Pete Steinfeld
Date: 2023-10-06T06:49:48-07:00
New Revision: d0663005a8dbdf12a568c7479b05e74dc14eef28

URL: https://github.com/llvm/llvm-project/commit/d0663005a8dbdf12a568c7479b05e74dc14eef28
DIFF: https://github.com/llvm/llvm-project/commit/d0663005a8dbdf12a568c7479b05e74dc14eef28.diff

LOG: [flang] Update instructions for a standalone flang build (#68361)

I added instructions for setting the environment variable ROOT_DIR.

Added: 
    

Modified: 
    flang/docs/GettingStarted.md

Removed: 
    


################################################################################
diff  --git a/flang/docs/GettingStarted.md b/flang/docs/GettingStarted.md
index f5319a7c38541fd..3b3f14d4fed1a8c 100644
--- a/flang/docs/GettingStarted.md
+++ b/flang/docs/GettingStarted.md
@@ -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
@@ -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


        


More information about the flang-commits mailing list