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

[SYCL] Remove -fPIC option on Windows #718

Merged
merged 1 commit into from
Jan 11, 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
7 changes: 6 additions & 1 deletion SYCL/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,12 @@
config.substitutions.append( ('%include_option', '-include' ) )
config.substitutions.append( ('%debug_option', '-g' ) )
config.substitutions.append( ('%cxx_std_option', '-std=' ) )
config.substitutions.append( ('%fPIC', '-fPIC') )
# Position-independent code does not make sence on Windows. At the same
# 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( ('%shared_lib', '-shared') )

if not config.gpu_aot_target_opts:
Expand Down