[flang-commits] [flang] 205aa3f - [flang] Document DEFAULT_SYSROOT usage on Darwin (#77353)
via flang-commits
flang-commits at lists.llvm.org
Wed Jan 10 04:15:37 PST 2024
Author: Leandro Lupori
Date: 2024-01-10T09:15:33-03:00
New Revision: 205aa3fb89769c703c14ff448cb7bff73438488f
URL: https://github.com/llvm/llvm-project/commit/205aa3fb89769c703c14ff448cb7bff73438488f
DIFF: https://github.com/llvm/llvm-project/commit/205aa3fb89769c703c14ff448cb7bff73438488f.diff
LOG: [flang] Document DEFAULT_SYSROOT usage on Darwin (#77353)
Added:
Modified:
flang/docs/GettingStarted.md
Removed:
################################################################################
diff --git a/flang/docs/GettingStarted.md b/flang/docs/GettingStarted.md
index 9656f5151acdf4..ada685426488a9 100644
--- a/flang/docs/GettingStarted.md
+++ b/flang/docs/GettingStarted.md
@@ -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
diff erent triple by overriding the default, the following needs to be added to
More information about the flang-commits
mailing list