Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit a870304

Browse files
authored
[SYCL] Rework fix for -fPIC on Windows (#729)
Previous fix removes substitution causing failure below: clang++: error: no such file or directory: '%fPIC'; did you mean '-fPIC'? The current fix provides substitution with empty string.
1 parent 3a9a0d3 commit a870304

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

SYCL/lit.cfg.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@
159159
# time providing this option for compilation targeting
160160
# x86_64-pc-windows-msvc will cause compile time error on some
161161
# configurations
162-
if platform.system() != "Windows":
163-
config.substitutions.append( ('%fPIC', '-fPIC') )
162+
config.substitutions.append( ('%fPIC', ('' if platform.system() == 'Windows' else '-fPIC')) )
164163
config.substitutions.append( ('%shared_lib', '-shared') )
165164

166165
if not config.gpu_aot_target_opts:

0 commit comments

Comments
 (0)