Skip to content

Commit 6aa55ea

Browse files
committed
[SYCL][E2E] remove old flags
1 parent 065af3f commit 6aa55ea

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

sycl/test-e2e/Config/kernel_from_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// RUN: %if linux %{ llvm-link -o=%t_app.bc %t.bc %t_compiler_wrappers.bc %t_asan.bc %} %else %{ llvm-link -o=%t_app.bc %t.bc %t_compiler_wrappers.bc %}
1515
// >> ---- translate to SPIR-V
1616
// RUN: llvm-spirv -o %t.spv %t_app.bc
17-
// RUN: %clangxx -Wno-error=ignored-attributes -isystem %sycl_include -DSYCL_DISABLE_FALLBACK_ASSERT %cxx_std_optionc++17 %include_option %t.h %s -o %t.out %sycl_options -fno-sycl-dead-args-optimization -Xclang -verify-ignore-unexpected=note,warning
17+
// RUN: %clangxx -Wno-error=ignored-attributes %sycl_include -DSYCL_DISABLE_FALLBACK_ASSERT %cxx_std_optionc++17 %include_option %t.h %s -o %t.out %sycl_options -fno-sycl-dead-args-optimization -Xclang -verify-ignore-unexpected=note,warning
1818
// RUN: env SYCL_USE_KERNEL_SPV=%t.spv %{run} %t.out | FileCheck %s
1919
// CHECK: Passed
2020

sycl/test-e2e/DeviceLib/separate_compile_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clangxx -fsycl -fsycl-link %S/std_complex_math_test.cpp -o %t_device.o %{mathflags}
44
// RUN: %clangxx -fsycl-device-only -Xclang -fsycl-int-header=std_complex_math_test_ihdr.h %S/std_complex_math_test.cpp -Wno-sycl-strict %{mathflags}
55
// >> host compilation...
6-
// RUN: %clangxx -Wno-error=unused-command-line-argument -isystem %sycl_include -Wno-error=ignored-attributes %cxx_std_optionc++17 %include_option std_complex_math_test_ihdr.h -c %S/std_complex_math_test.cpp -o %t_host.o %sycl_options -Wno-sycl-strict %{mathflags}
6+
// RUN: %clangxx -Wno-error=unused-command-line-argument %sycl_include -Wno-error=ignored-attributes %cxx_std_optionc++17 %include_option std_complex_math_test_ihdr.h -c %S/std_complex_math_test.cpp -o %t_host.o %sycl_options -Wno-sycl-strict %{mathflags}
77
// RUN: %clangxx %t_host.o %t_device.o -Wno-unused-command-line-argument -o %t.out %sycl_options %{mathflags}
88
// RUN: %{run} %t.out
99

sycl/test-e2e/lit.cfg.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,6 @@
146146
llvm_config.with_environment(var, "")
147147

148148
config.substitutions.append(("%sycl_libs_dir", config.sycl_libs_dir))
149-
if platform.system() == "Windows":
150-
config.substitutions.append(
151-
("%sycl_static_libs_dir", config.sycl_libs_dir + "/../lib")
152-
)
153-
config.substitutions.append(("%obj_ext", ".obj"))
154-
config.substitutions.append(("%sycl_include", "/imsvc " + config.sycl_include))
155-
elif platform.system() == "Linux":
156-
config.substitutions.append(("%sycl_static_libs_dir", config.sycl_libs_dir))
157-
config.substitutions.append(("%obj_ext", ".o"))
158-
config.substitutions.append(("%sycl_include", "-isystem " + config.sycl_include))
159149

160150
# Intel GPU FAMILY availability
161151
if lit_config.params.get("gpu-intel-gen11", False):
@@ -213,6 +203,20 @@ def open_check_file(file_name):
213203
cl_options = True
214204
config.available_features.add("cl_options")
215205

206+
if platform.system() == "Windows":
207+
config.substitutions.append(
208+
("%sycl_static_libs_dir", config.sycl_libs_dir + "/../lib")
209+
)
210+
config.substitutions.append(("%obj_ext", ".obj"))
211+
if cl_options:
212+
config.substitutions.append(("%sycl_include", "/imsvc " + config.sycl_include))
213+
else:
214+
config.substitutions.append(("%sycl_include", "-isystem " + config.sycl_include))
215+
elif platform.system() == "Linux":
216+
config.substitutions.append(("%sycl_static_libs_dir", config.sycl_libs_dir))
217+
config.substitutions.append(("%obj_ext", ".o"))
218+
config.substitutions.append(("%sycl_include", "-isystem " + config.sycl_include))
219+
216220
# check if the compiler was built in NDEBUG configuration
217221
has_ndebug = False
218222
ps = subprocess.Popen(

0 commit comments

Comments
 (0)