Skip to content

Commit 5e63d1e

Browse files
committed
Do not add header search directories at this time
1 parent 6b937eb commit 5e63d1e

File tree

2 files changed

+2
-39
lines changed

2 files changed

+2
-39
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,8 @@ void SYCLInstallationDetector::AddSYCLIncludeArgs(
2626
return;
2727

2828
// Add the SYCL header search locations in the specified order.
29-
// ../include/sycl/stl_wrappers
30-
// ../include
31-
SmallString<128> IncludePath(D.Dir);
32-
llvm::sys::path::append(IncludePath, "..");
33-
llvm::sys::path::append(IncludePath, "include");
34-
// This is used to provide our wrappers around STL headers that provide
35-
// additional functions/template specializations when the user includes those
36-
// STL headers in their programs (e.g., <complex>).
37-
SmallString<128> STLWrappersPath(IncludePath);
38-
llvm::sys::path::append(STLWrappersPath, "sycl");
39-
llvm::sys::path::append(STLWrappersPath, "stl_wrappers");
40-
CC1Args.push_back("-internal-isystem");
41-
CC1Args.push_back(DriverArgs.MakeArgString(STLWrappersPath));
42-
CC1Args.push_back("-internal-isystem");
43-
CC1Args.push_back(DriverArgs.MakeArgString(IncludePath));
29+
// FIXME: Add the header file locations once the SYCL library and headers
30+
// are properly established within the build.
4431
}
4532

4633
// Unsupported options for SYCL device compilation.

clang/test/Driver/sycl-offload-jit.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,30 +46,6 @@
4646
// CHK-FSYCL-IS-DEVICE: clang{{.*}} "-fsycl-is-device" {{.*}} "-emit-llvm-bc"
4747
// CHK-FSYCL-IS-HOST: clang{{.*}} "-fsycl-is-host"
4848

49-
// Verify header search dirs are added with -fsycl
50-
// RUN: %clang -### -fsycl %s 2>&1 \
51-
// RUN: | FileCheck %s -check-prefixes=CHECK-HEADER-DIR
52-
// RUN: %clang_cl -### -fsycl %s 2>&1 \
53-
// RUN: | FileCheck %s -check-prefixes=CHECK-HEADER-DIR
54-
// CHECK-HEADER-DIR: clang{{.*}} "-fsycl-is-device"
55-
// CHECK-HEADER-DIR-SAME: "-internal-isystem" "[[ROOT:[^"]*]]bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers"
56-
// CHECK-HEADER-DIR-NOT: -internal-isystem
57-
// CHECK-HEADER-DIR-SAME: "-internal-isystem" "[[ROOT]]bin{{[/\\]+}}..{{[/\\]+}}include"
58-
// CHECK-HEADER-DIR: clang{{.*}} "-fsycl-is-host"
59-
// CHECK-HEADER-DIR-SAME: "-internal-isystem" "[[ROOT]]bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers"
60-
// CHECK-HEADER-DIR-NOT: -internal-isystem
61-
// CHECK-HEADER-DIR-SAME: "-internal-isystem" "[[ROOT]]bin{{[/\\]+}}..{{[/\\]+}}include"
62-
63-
// Verify no header search dirs are added with -fsycl -nobuiltininc
64-
// RUN: %clang -### -fsycl -nobuiltininc %s 2>&1 \
65-
// RUN: | FileCheck %s -check-prefixes=NO-HEADER-DIR
66-
// RUN: %clang_cl -### -fsycl -nobuiltininc %s 2>&1 \
67-
// RUN: | FileCheck %s -check-prefixes=NO-HEADER-DIR
68-
// NO-HEADER-DIR: clang{{.*}} "-fsycl-is-device"
69-
// NO-HEADER-DIR-NOT: "-internal-isystem" "{{.*}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers"
70-
// NO-HEADER-DIR: clang{{.*}} "-fsycl-is-host"
71-
// NO-HEADER-DIR-NOT: "-internal-isystem" "{{.*}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers"
72-
7349
/// Check for option incompatibility with -fsycl
7450
// RUN: not %clang -### -fsycl -ffreestanding %s 2>&1 \
7551
// RUN: | FileCheck -check-prefix=CHK-INCOMPATIBILITY %s \

0 commit comments

Comments
 (0)