Skip to content

Commit

Permalink
[SYCL] fix for syclcompat test on Windows (#12696)
Browse files Browse the repository at this point in the history
-shared flag is a clang/linux option. On Windows we need to be cognizant
of possibly using MSVC compatible driver (e.g. icx) Needs `/clang`
passthrough when using non MSVC options
  • Loading branch information
cperkinsintel authored Feb 15, 2024
1 parent 6b8792c commit 3f445cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sycl/test-e2e/syclcompat/kernel/kernel_win.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// REQUIRES: windows

// RUN: %clangxx -shared -fsycl -fsycl-targets=%{sycl_triple} %S\Inputs\kernel_module.cpp -o %t.so
// RUN: %clangxx -DTEST_SHARED_LIB='"%/t.so"' -fsycl -fsycl-targets=%{sycl_triple} %S\Inputs\kernel_function.cpp -o %t.out
// DEFINE: %{sharedflag} = %if cl_options %{/clang:-shared%} %else %{-shared%}

// RUN: %clangxx %{sharedflag} -fsycl -fsycl-targets=%{sycl_triple} %S\Inputs\kernel_module.cpp -o %t.dll
// RUN: %clangxx -DTEST_SHARED_LIB='"%/t.dll"' -fsycl -fsycl-targets=%{sycl_triple} %S\Inputs\kernel_function.cpp -o %t.out
// RUN: %{run} %t.out

0 comments on commit 3f445cf

Please sign in to comment.