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

[SYCL] Rework fix for -fPIC on Windows #729

Merged
merged 2 commits into from
Jan 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions SYCL/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@
# time providing this option for compilation targeting
# x86_64-pc-windows-msvc will cause compile time error on some
# configurations
if platform.system() != "Windows":
config.substitutions.append( ('%fPIC', '-fPIC') )
config.substitutions.append( ('%fPIC', ('' if platform.system() == 'Windows' else '-fPIC')) )
config.substitutions.append( ('%shared_lib', '-shared') )

if not config.gpu_aot_target_opts:
Expand Down