Skip to content

Commit

Permalink
Linux g++ -fPIC compiler parameter for building the Zhivo standard li…
Browse files Browse the repository at this point in the history
…brary.
  • Loading branch information
nthnn committed Oct 17, 2024
1 parent e43bb98 commit d114505
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d114505

Please sign in to comment.