[Clang][VE] Fix toolchain test when -DCLANG_DEFAULT_LINKER=lld in use
authorSimon Moll <simon.moll@emea.nec.com>
Wed, 1 Dec 2021 17:03:14 +0000 (18:03 +0100)
committerSimon Moll <simon.moll@emea.nec.com>
Wed, 1 Dec 2021 17:26:23 +0000 (18:26 +0100)
commit6dd0bfad0d3c7bfaa3442ad2382ce3bd8ad94be3
treeb20d341e6476bcc219a176f709a6e454dfe422ba
parent617ad14060dcdfa9f1f967a3edd9e097de8bf83a
[Clang][VE] Fix toolchain test when -DCLANG_DEFAULT_LINKER=lld in use

The CLANG_DEFAULT_LINKER flag overrides the default toolchain linker.
VE strictly requires 'nld' to be the default linker.  This causes a test
failure in test/Driver/ve-toolchain.cpp when configured with
CLANG_DEFAULT_LINKER!=ld

  Failure in clang-ppc64le-rhel
  (https://lab.llvm.org/buildbot/#/builders/57/builds/12628)

Until default linker selection with CLANG_DEFAULT_LINKER!=ld is fixed
proper, we manually specify '-fuse-ld=ld' (ie the toolchain default
linker) in the ve-toolchain tests.
clang/test/Driver/ve-toolchain.c
clang/test/Driver/ve-toolchain.cpp