|
94 | 94 | config.substitutions.append( ('%sycl_libs_dir', config.sycl_libs_dir ) )
|
95 | 95 | if platform.system() == "Windows":
|
96 | 96 | config.substitutions.append( ('%sycl_static_libs_dir', config.sycl_libs_dir + '/../lib' ) )
|
| 97 | + config.substitutions.append( ('%obj_ext', '.obj') ) |
97 | 98 | elif platform.system() == "Linux":
|
98 | 99 | config.substitutions.append( ('%sycl_static_libs_dir', config.sycl_libs_dir ) )
|
| 100 | + config.substitutions.append( ('%obj_ext', '.o') ) |
99 | 101 | config.substitutions.append( ('%sycl_include', config.sycl_include ) )
|
100 | 102 |
|
101 | 103 | if lit_config.params.get('gpu-intel-dg1', False):
|
|
159 | 161 | config.substitutions.append( ('%cxx_std_option', '/std:' ) )
|
160 | 162 | config.substitutions.append( ('%fPIC', '') )
|
161 | 163 | config.substitutions.append( ('%shared_lib', '/LD') )
|
162 |
| - config.substitutions.append( ('%obj_ext', '.obj') ) |
163 | 164 | else:
|
164 | 165 | config.substitutions.append( ('%sycl_options', ' -lsycl -I' +
|
165 | 166 | config.sycl_include + ' -I' + os.path.join(config.sycl_include, 'sycl') +
|
|
173 | 174 | # configurations
|
174 | 175 | config.substitutions.append( ('%fPIC', ('' if platform.system() == 'Windows' else '-fPIC')) )
|
175 | 176 | config.substitutions.append( ('%shared_lib', '-shared') )
|
176 |
| - config.substitutions.append( ('%obj_ext', '.o') ) |
177 | 177 |
|
178 | 178 | if not config.gpu_aot_target_opts:
|
179 | 179 | config.gpu_aot_target_opts = '"-device *"'
|
|
0 commit comments