[flang-rt] Add sysroot to test (#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
This commit is contained in:
Tom Eccles 2026-02-20 16:18:44 +00:00 committed by GitHub
parent 0364a25f4e
commit f3f0b621f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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!