Skip to content

Commit 311cc71

Browse files
authored
[SYCL][E2E] Fix -Werror failures in DeviceLib tests (#18985)
The `-fsycl-device-lib-jit-link` only has an effect in SPIR compilation so these tests would fail with `-Werror`. It might be worth re-working these tests a bit to only run this part on spir, but other existing tests already have this change to make it work on `-Werror` so do it as well here to fix the nightly. Fixes #18744
1 parent 3ffee67 commit 311cc71

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: %{build} %{mathflags} -o %t1.out
88
// RUN: %{run} %t1.out
99

10-
// RUN: %{build} -fsycl-device-lib-jit-link %{mathflags} -o %t2.out
10+
// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-device-lib-jit-link %{mathflags} -o %t2.out
1111
// RUN: %{run} %t2.out
1212

1313
#include "math_utils.hpp"

sycl/test-e2e/DeviceLib/std_complex_math_fp64_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %{build} -o %t1.out
55
// RUN: %{run} %t1.out
66

7-
// RUN: %{build} -fsycl-device-lib-jit-link -o %t2.out
7+
// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-device-lib-jit-link -o %t2.out
88
// RUN: %{run} %t2.out
99

1010
#include <array>

sycl/test-e2e/DeviceLib/std_complex_math_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %{build} %{mathflags} -o %t1.out
33
// RUN: %{run} %t1.out
44

5-
// RUN: %{build} -fsycl-device-lib-jit-link %{mathflags} -o %t2.out
5+
// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-device-lib-jit-link %{mathflags} -o %t2.out
66
// RUN: %{run} %t2.out
77

88
#include <array>

0 commit comments

Comments
 (0)