
Summary: This patch reworks how we create offloading toolchains. Previously we would handle this separately for all the different kinds. This patch instead changes this to use the target triple and the offloading kind to determine the proper toolchain. In the old case where the user only passes `--offload-arch` we instead infer the triple from the passed arguments. This is a pretty major overhaul but currently passes all the clang tests with only minor changes to error messages.
8 lines
301 B
C++
8 lines
301 B
C++
// UNSUPPORTED: system-windows
|
|
|
|
// RUN: not %clang -### -x hip --target=x86_64-linux-gnu --offload=foo \
|
|
// RUN: --hip-path=%S/Inputs/hipspv -nogpuinc -nogpulib %s \
|
|
// RUN: 2>&1 | FileCheck --check-prefix=INVALID-TARGET %s
|
|
|
|
// INVALID-TARGET: error: invalid or unsupported offload target: '{{.*}}'
|