[flang-commits] [flang] [flang] Modify lto testcase for AIX (PR #74496)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Wed Dec 6 05:05:43 PST 2023


================
@@ -11,7 +11,7 @@
 
 ! Also check linker plugin opt for Thin LTO
 ! RUN: %flang -### -flto=thin %s 2>&1 | FileCheck %s \
-! RUN:        --check-prefixes=%if system-darwin %{THIN-LTO-ALL%} \
+! RUN:        --check-prefixes=%if system-darwin %{THIN-LTO-ALL%}%if system-aix %{THIN-LTO-ALL,THIN-LTO-LINKER-PLUGIN-AIX%} \
 ! RUN:        %else %{THIN-LTO-ALL,THIN-LTO-LINKER-PLUGIN%}
----------------
luporl wrote:

Indeed, it would be better. It would avoid the nested `%if`s and make it possible to test all targets on the same machine.
But wouldn't it require all tested targets to be built in clang/flang, and tested with a `REQUIRES:` line?

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


More information about the flang-commits mailing list