[llvm] [flang-rt] Add sysroot to test (PR #182508)
Tom Eccles via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 06:50:12 PST 2026
https://github.com/tblah created https://github.com/llvm/llvm-project/pull/182508
This fixes the test on MacOS. Without this change the SDK sysroot is not set and so the library path is incorrect and the 'System' library cannot be found.
Test with https://github.com/llvm/llvm-project/pull/182501 so that the sysroot variable is correctly set.
Assisted-by: Codex
>From 78e8f2b13dd6aabcad64d5bb798fa03cde63815d Mon Sep 17 00:00:00 2001
From: Tom Eccles <tom.eccles at arm.com>
Date: Fri, 20 Feb 2026 14:41:33 +0000
Subject: [PATCH] [flang-rt] Add sysroot to test
This fixes the test on MacOS. Without this change the SDK sysroot is not
set and so the library path is incorrect and the 'System' library cannot
be found.
Test with https://github.com/llvm/llvm-project/pull/182501 so that the
sysroot variable is correctly set.
Assisted-by: Codex
---
flang-rt/test/Driver/exec.f90 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flang-rt/test/Driver/exec.f90 b/flang-rt/test/Driver/exec.f90
index d220174994979..f6379796b2871 100644
--- a/flang-rt/test/Driver/exec.f90
+++ b/flang-rt/test/Driver/exec.f90
@@ -2,7 +2,7 @@
! Verify that flang can correctly build executables.
-! RUN: %flang -L"%libdir" %s -o %t
+! RUN: %flang %isysroot -L"%libdir" %s -o %t
! RUN: env LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%libdir" %t | FileCheck %s
! CHECK: Hello, World!
More information about the llvm-commits
mailing list