[flang-commits] [clang] [flang] [Flang][Driver] Support for -fsplit-lto-unit option in flang driver (PR #202858)
via flang-commits
flang-commits at lists.llvm.org
Thu Jun 18 21:20:44 PDT 2026
shivaramaarao wrote:
> @shivaramaarao I'm seeing failure:
>
> ```
> # | error: unable to create target: 'No available targets are compatible with triple "x86_64-unknown-linux-gnu"'
> ```
>
> when building only aarch64.
>
> Perhaps something like this is needed:
>
> ```
> -! RUN: %flang -flto=thin --target=x86_64-linux-gnu -fsplit-lto-unit -S -o - %s | FileCheck %s --check-prefix=SPLIT1
> +! RUN: %if x86-registered-target %{ %flang -flto=thin --target=x86_64-linux-gnu -fsplit-lto-unit -S -o - %s | FileCheck %s --check-prefix=SPLIT1 %}
> ```
Hi Steve,
Apologies for that. Will create a PR to fix this issue.
Regards,
Shivaram
https://github.com/llvm/llvm-project/pull/202858
More information about the flang-commits
mailing list