[Clang] Fix clang_rt tests when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR is ON
authorMichael Platings <michael.platings@arm.com>
Thu, 9 Feb 2023 18:07:52 +0000 (18:07 +0000)
committerMichael Platings <michael.platings@arm.com>
Wed, 22 Feb 2023 07:45:16 +0000 (07:45 +0000)
commitd61a863050bb4afd22d08bbe53af1e24c0657aba
treec2631358b8550c5418384e903dc8e4417a74ba6f
parent2e416cdd52c1079b8c7cb1f7d7e557c889a4fb56
[Clang] Fix clang_rt tests when LLVM_ENABLE_PER_TARGET_RUNTIME_DIR is ON

If clang is part of a toolchain that can locate clang_rt libraries
outside its resource directory and these are built with
LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON then the tests would fail because
the library names don't have the arch suffix. This change makes the arch
suffix optional.

Differential Revision: https://reviews.llvm.org/D143666
clang/test/Driver/arm-compiler-rt.c
clang/test/Driver/print-libgcc-file-name-clangrt.c