From 7533f583a6ef5b0b6b93574b305f13597e0830c5 Mon Sep 17 00:00:00 2001 From: Nicolas Miller Date: Mon, 16 Jun 2025 09:48:50 +0100 Subject: [PATCH] [SYCL][E2E] Fix -Werror failures in DeviceLib tests 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. --- sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp | 2 +- sycl/test-e2e/DeviceLib/std_complex_math_fp64_test.cpp | 2 +- sycl/test-e2e/DeviceLib/std_complex_math_test.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp b/sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp index c04b84c9d8b7e..7469395081c38 100644 --- a/sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp +++ b/sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp @@ -7,7 +7,7 @@ // RUN: %{build} %{mathflags} -o %t1.out // RUN: %{run} %t1.out -// RUN: %{build} -fsycl-device-lib-jit-link %{mathflags} -o %t2.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-device-lib-jit-link %{mathflags} -o %t2.out // RUN: %{run} %t2.out #include "math_utils.hpp" diff --git a/sycl/test-e2e/DeviceLib/std_complex_math_fp64_test.cpp b/sycl/test-e2e/DeviceLib/std_complex_math_fp64_test.cpp index 18abb3c1418f8..b9c4e424d8357 100644 --- a/sycl/test-e2e/DeviceLib/std_complex_math_fp64_test.cpp +++ b/sycl/test-e2e/DeviceLib/std_complex_math_fp64_test.cpp @@ -4,7 +4,7 @@ // RUN: %{build} -o %t1.out // RUN: %{run} %t1.out -// RUN: %{build} -fsycl-device-lib-jit-link -o %t2.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-device-lib-jit-link -o %t2.out // RUN: %{run} %t2.out #include diff --git a/sycl/test-e2e/DeviceLib/std_complex_math_test.cpp b/sycl/test-e2e/DeviceLib/std_complex_math_test.cpp index de10eea19c117..906b8013cabb7 100644 --- a/sycl/test-e2e/DeviceLib/std_complex_math_test.cpp +++ b/sycl/test-e2e/DeviceLib/std_complex_math_test.cpp @@ -2,7 +2,7 @@ // RUN: %{build} %{mathflags} -o %t1.out // RUN: %{run} %t1.out -// RUN: %{build} -fsycl-device-lib-jit-link %{mathflags} -o %t2.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-device-lib-jit-link %{mathflags} -o %t2.out // RUN: %{run} %t2.out #include