@@ -27,7 +27,13 @@ auto constexpr IncludePathsSource = R"===(
27
27
#include <sycl/sycl.hpp>
28
28
29
29
#ifdef USE_ABSOLUTE_INCLUDE
30
+
31
+ #ifndef _WIN32
30
32
#include "/tmp/sycl-rtc-end-to-end-test/header1.hpp"
33
+ #else
34
+ #include "c:/tmp/sycl-rtc-end-to-end-test/header1.hpp"
35
+ #endif
36
+
31
37
#else
32
38
#include "header1.hpp"
33
39
#include "B/header2.hpp"
@@ -147,7 +153,11 @@ int test_include_paths(const std::string &baseDir) {
147
153
148
154
// A bit silly, but including with an absolute path also works
149
155
syclex::include_files absoluteVirtualIncludes{
156
+ #ifndef _WIN32
150
157
" /tmp/sycl-rtc-end-to-end-test/header1.hpp" ,
158
+ #else
159
+ " c:/tmp/sycl-rtc-end-to-end-test/header1.hpp" ,
160
+ #endif
151
161
" #define DEFINE_1 abs1\n #define DEFINE_2 abs2" };
152
162
syclex::build_options setDefine{" -DUSE_ABSOLUTE_INCLUDE" };
153
163
test_compilation (ctx, syclex::properties{absoluteVirtualIncludes},
@@ -162,7 +172,11 @@ int test_include_paths(const std::string &baseDir) {
162
172
// situation in which the *same name* is used for the `#include` and the
163
173
// `include_files` property, which is not the case here.
164
174
syclex::build_options mixedIncludes;
175
+ #ifndef _WIN32
165
176
mixedIncludes.add (" -I/tmp/sycl-rtc-end-to-end-test" );
177
+ #else
178
+ mixedIncludes.add (" -Ic:/tmp/sycl-rtc-end-to-end-test" );
179
+ #endif
166
180
mixedIncludes.add (" -I" + baseDir + " /include" );
167
181
test_compilation (ctx, syclex::properties{absoluteVirtualIncludes},
168
182
syclex::properties{mixedIncludes});
0 commit comments