We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a7317 commit c62b57dCopy full SHA for c62b57d
SYCL/lit.cfg.py
@@ -150,7 +150,12 @@
150
config.substitutions.append( ('%include_option', '-include' ) )
151
config.substitutions.append( ('%debug_option', '-g' ) )
152
config.substitutions.append( ('%cxx_std_option', '-std=' ) )
153
- config.substitutions.append( ('%fPIC', '-fPIC') )
+ # Position-independent code does not make sence on Windows. At the same
154
+ # time providing this option for compilation targeting
155
+ # x86_64-pc-windows-msvc will cause compile time error on some
156
+ # configurations
157
+ if platform.system() != "Windows":
158
+ config.substitutions.append( ('%fPIC', '-fPIC') )
159
config.substitutions.append( ('%shared_lib', '-shared') )
160
161
if not config.gpu_aot_target_opts:
0 commit comments