|
146 | 146 | llvm_config.with_environment(var, "") |
147 | 147 |
|
148 | 148 | 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)) |
159 | 149 |
|
160 | 150 | # Intel GPU FAMILY availability |
161 | 151 | if lit_config.params.get("gpu-intel-gen11", False): |
@@ -213,6 +203,20 @@ def open_check_file(file_name): |
213 | 203 | cl_options = True |
214 | 204 | config.available_features.add("cl_options") |
215 | 205 |
|
| 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 | + |
216 | 220 | # check if the compiler was built in NDEBUG configuration |
217 | 221 | has_ndebug = False |
218 | 222 | ps = subprocess.Popen( |
|
0 commit comments