[flang] Use clang sysroot image to test fastmath linking
authorTom Eccles <tom.eccles@arm.com>
Sat, 28 Jan 2023 13:45:44 +0000 (13:45 +0000)
committerTom Eccles <tom.eccles@arm.com>
Wed, 8 Feb 2023 10:01:09 +0000 (10:01 +0000)
commit09216cfdab87fc97afc0b0bc7998adff5ab283c0
tree3258379ada49d1c45235800c1758bc680c38f56a
parent61c5c59720d7578c90e136ae2a33e75f5e824f88
[flang] Use clang sysroot image to test fastmath linking

This test has been very unreliable across different machines. Update it
to use clang's sysroot image so that the fastmath object file name is
stable across different distributions and distro types.

Based on clang/test/Driver/linux-ld.c

Thanks to mnadeem for pointing this out at https://reviews.llvm.org/D138675

Differential Revision: https://reviews.llvm.org/D142807
flang/test/Driver/fast_math.f90