[flang-commits] [flang] [flang] Fix failure of regression tests on macOS (PR #151812)

via flang-commits flang-commits at lists.llvm.org
Mon Aug 4 07:53:21 PDT 2025


parabola94 wrote:

Thank you for your feedback.
I was missing that clang tests handle `-isysroot` flag only if necessary. On the other hand, flang adds it to all tests if `CMAKE_OSX_SYSROOT` is set. In general, `-isysroot` flag is necessary for searching for headers and libraries. However, I was not sure which tests exactly need the flag, so I tried removing it in testing and found that all tests were passed.
Now I understand it would be better to handle the flag only if necessary.

https://github.com/llvm/llvm-project/pull/151812


More information about the flang-commits mailing list