@@ -1815,22 +1815,18 @@ void SYCLToolChain::AddSYCLIncludeArgs(const clang::driver::Driver &Driver,
18151815 const ArgList &DriverArgs,
18161816 ArgStringList &CC1Args) {
18171817 // Add the SYCL header search locations in the specified order.
1818- // ../include/sycl
18191818 // ../include/sycl/stl_wrappers
18201819 // ../include
18211820 SmallString<128 > IncludePath (Driver.Dir );
18221821 llvm::sys::path::append (IncludePath, " .." );
18231822 llvm::sys::path::append (IncludePath, " include" );
1824- SmallString<128 > SYCLPath (IncludePath);
1825- llvm::sys::path::append (SYCLPath, " sycl" );
18261823 // This is used to provide our wrappers around STL headers that provide
18271824 // additional functions/template specializations when the user includes those
18281825 // STL headers in their programs (e.g., <complex>).
1829- SmallString<128 > STLWrappersPath (SYCLPath);
1826+ SmallString<128 > STLWrappersPath (IncludePath);
1827+ llvm::sys::path::append (STLWrappersPath, " sycl" );
18301828 llvm::sys::path::append (STLWrappersPath, " stl_wrappers" );
18311829 CC1Args.push_back (" -internal-isystem" );
1832- CC1Args.push_back (DriverArgs.MakeArgString (SYCLPath));
1833- CC1Args.push_back (" -internal-isystem" );
18341830 CC1Args.push_back (DriverArgs.MakeArgString (STLWrappersPath));
18351831 CC1Args.push_back (" -internal-isystem" );
18361832 CC1Args.push_back (DriverArgs.MakeArgString (IncludePath));
0 commit comments