Skip to content

Commit 5d6c973

Browse files
committed
[SYCL][E2E] Fix preview flag detection for CUDA and HIP (intel#11929)
The detection of support for -fpreview-breaking-changes was failing in E2E unintentionally. This commit fixes this detection. --------- Signed-off-by: Larsen, Steffen <[email protected]> (cherry picked from commit bc30bef)
1 parent 52261d2 commit 5d6c973

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

sycl/test-e2e/Basic/built-ins/vec_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %s -o %t2.out %}
3+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t2.out %}
44
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
55

66
#ifdef _WIN32

sycl/test-e2e/Basic/built-ins/vec_geometric.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %s -o %t2.out %}
4-
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
3+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t2.out %}
4+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
55

66
#include <sycl/sycl.hpp>
77

sycl/test-e2e/Basic/built-ins/vec_math.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// RUN: %{build} %{mathflags} -o %t.out
44
// RUN: %{run} %t.out
5-
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %{mathflags} %s -o %t2.out %}
5+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes %{mathflags} -o %t2.out %}
66
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
77

88
#include <sycl/sycl.hpp>

sycl/test-e2e/Basic/built-ins/vec_relational.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %s -o %t2.out %}
4-
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
3+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t2.out %}
4+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
55

66
#include <sycl/sycl.hpp>
77

sycl/test-e2e/Basic/vec_bool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
33

4-
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %s -o %t2.out %}
5-
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
4+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t2.out %}
5+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
66

77
//==-------------- vec_bool.cpp - SYCL vec<> for bool test -----------------==//
88
//

sycl/test-e2e/Basic/vector_byte.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: %{build} -std=c++17 -o %t.out
22
// RUN: %{run} %t.out
33

4-
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes -std=c++17 %s -o %t2.out %}
5-
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
4+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -std=c++17 -o %t2.out %}
5+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
66

77
//==---------- vector_byte.cpp - SYCL vec<> for std::byte test -------------==//
88
//

0 commit comments

Comments
 (0)