[flang-commits] [flang] [flang] Fix flang tests on MacOS (PR #70811)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Wed Nov 8 06:32:21 PST 2023


================
@@ -1,4 +1,5 @@
-! UNSUPPORTED: system-windows
+! MacOS needs -isysroot <osx_sysroot> with clang and flang to build binaries.
----------------
luporl wrote:

I managed to work around this when clang is used. The problem is that flang doesn't support the `-isysroot` flag.

If `-L<osx_sysroot>/usr/lib` is used with flang then it can output a linked binary, but I think it would be better to make flang also support `-isysroot`. I'll try to add support for it in a separate patch.

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


More information about the flang-commits mailing list