Skip to content

Commit 205aa3f

Browse files
authored
[flang] Document DEFAULT_SYSROOT usage on Darwin (#77353)
1 parent 5b4abae commit 205aa3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flang/docs/GettingStarted.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ cmake \
8888
ninja
8989
```
9090

91+
On Darwin, to make flang able to link binaries with the default sysroot without
92+
having to specify additional flags, use the `DEFAULT_SYSROOT` cmake flag, e.g.
93+
`-DDEFAULT_SYSROOT="$(xcrun --show-sdk-path)"`.
94+
9195
By default flang tests that do not specify an explicit `--target` flag use
9296
LLVM's default target triple. For these tests, if there is a need to test on a
9397
different triple by overriding the default, the following needs to be added to

0 commit comments

Comments
 (0)