Skip to content

Commit

Permalink
[flang] Document DEFAULT_SYSROOT usage on Darwin (#77353)
Browse files Browse the repository at this point in the history
  • Loading branch information
luporl committed Jan 10, 2024
1 parent 5b4abae commit 205aa3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flang/docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ cmake \
ninja
```

On Darwin, to make flang able to link binaries with the default sysroot without
having to specify additional flags, use the `DEFAULT_SYSROOT` cmake flag, e.g.
`-DDEFAULT_SYSROOT="$(xcrun --show-sdk-path)"`.

By default flang tests that do not specify an explicit `--target` flag use
LLVM's default target triple. For these tests, if there is a need to test on a
different triple by overriding the default, the following needs to be added to
Expand Down

0 comments on commit 205aa3f

Please sign in to comment.