Skip to content

Commit 610d42a

Browse files
authored
[SYCL][E2E] Pass sycl target options to clang in one test (#18997)
This is required to ensure that the correct target with the correct options is used when linking with clang in the test. For example without trying to use the `SPIR-V` (not the SPIR) backend for testing with `--param spirv-backend=True` does not take effect. If the test would be run on a non SPIR target it would fail as clang is expecting object files for the SPIR target when `-fsycl-targets` is not set.
1 parent a7e0f86 commit 610d42a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/DeviceLib/imf_fp16_trivial_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// RUN: %{build} %{mathflags} -c -DSOURCE1 -o %t1.o
77
// RUN: %{build} %{mathflags} -c -DSOURCE2 -o %t2.o
8-
// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl %t1.o %t2.o -o %t.out
8+
// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl %{sycl_target_opts} %t1.o %t2.o -o %t.out
99
// RUN: %{run} %t.out
1010

1111
// UNSUPPORTED: target-nvidia, target-amd

0 commit comments

Comments
 (0)