
This should fix failures caused by https://github.com/llvm/llvm-project/pull/133967 Attn: @sarnex Thanks Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
12 lines
590 B
C++
12 lines
590 B
C++
// Tests the driver when linking LLVM IR bitcode files and targeting SPIR-V
|
|
// architecture.
|
|
//
|
|
// REQUIRES: spirv-registered-target
|
|
//
|
|
// Test that -Xlinker options are being passed to clang-sycl-linker.
|
|
// RUN: touch %t.bc
|
|
// RUN: %clangxx -### --target=spirv64 --sycl-link -Xlinker -triple=spirv64 -Xlinker --library-path=/tmp \
|
|
// RUN: -Xlinker --device-libs=lib1.bc,lib2.bc %t.bc 2>&1 \
|
|
// RUN: | FileCheck %s -check-prefix=XLINKEROPTS
|
|
// XLINKEROPTS: "{{.*}}clang-sycl-linker{{.*}}" "-triple=spirv64" "--library-path=/tmp" "--device-libs=lib1.bc,lib2.bc" "{{.*}}.bc" "-o" "a.out"
|