Skip to content

Commit 7e0f76b

Browse files
[LIT][SYCL] Reduce compilation time for known_identity test (#7498)
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent 3667cf3 commit 7e0f76b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sycl/test/basic_tests/known_identity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -Xclang -verify %s -Xclang -verify-ignore-unexpected=note,warning -o %t.out -std=c++17
1+
// RUN: %clangxx %fsycl-host-only -Xclang -verify %s -Xclang -verify-ignore-unexpected=note,warning -o %t.out -std=c++17 %sycl_lib -L%sycl_libs_dir
22
// RUN: %t.out
33
// expected-no-diagnostics
44

sycl/test/lit.cfg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
config.substitutions.append( ('%llvm_build_bin_dir', config.llvm_build_bin_dir ) )
8888

8989
config.substitutions.append( ('%fsycl-host-only', '-std=c++17 -Xclang -fsycl-is-host -isystem %s -isystem %s -isystem %s' % (config.sycl_include, config.opencl_include_dir, config.sycl_include + '/sycl/') ) )
90+
config.substitutions.append( ('%sycl_lib', ' -lsycl6' if platform.system() == "Windows" else '-lsycl') )
9091

9192
llvm_config.add_tool_substitutions(['llvm-spirv'], [config.sycl_tools_dir])
9293

0 commit comments

Comments
 (0)