I tried to use %itanium_abi_triple, but it can only be used with -fc1 -triple.
Error info:
+ /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/bin/flang-new -fc1 -emit-obj /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang/test/Driver/link-f90-main.f90 -o /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/tools/flang/test/Driver/Output/link-f90-main.f90.tmp.o + : 'RUN: at line 10' + /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/bin/flang-new -target x86_64-unknown-linux-gnu /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/tools/flang/test/Driver/Output/link-f90-main.f90.tmp.o -o /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/tools/flang/test/Driver/Output/link-f90-main.f90.tmp.out -flang-experimental-exec /usr/bin/ld: unrecognised emulation mode: elf_x86_64 Supported emulations: aarch64linux aarch64elf aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb aarch64linuxb aarch64linux32 aarch64linux32b armelfb_linux_eabi armelf_linux_eabi flang-new: error: linker command failed with exit code 1 (use -v to see invocation)