diff --git a/build.py b/build.py index 417b742..ee3a849 100644 --- a/build.py +++ b/build.py @@ -116,6 +116,9 @@ lib_build_args += cc_files cuda_build_args = ['nvcc'] +if PLATFORM == 'Linux': + lib_build_args.append('-fPIC') + if PLATFORM == 'Windows': cuda_build_args.append('-Xcompiler') cuda_build_args.append('/std:c++17')