[flang-commits] [flang] [flang] Document DEFAULT_SYSROOT usage on Darwin (PR #77353)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Mon Jan 8 10:38:47 PST 2024


https://github.com/luporl created https://github.com/llvm/llvm-project/pull/77353

None

>From c24cd20b35c73be87ef2bffa335c24cb3af6a7fd Mon Sep 17 00:00:00 2001
From: Leandro Lupori <leandro.lupori at linaro.org>
Date: Mon, 8 Jan 2024 15:35:20 -0300
Subject: [PATCH] [flang] Document DEFAULT_SYSROOT usage on Darwin

---
 flang/docs/GettingStarted.md | 4 ++++
 1 file changed, 4 insertions(+)

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
 different triple by overriding the default, the following needs to be added to



More information about the flang-commits mailing list