Skip to content

Commit

Permalink
setup: bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
YoSTEALTH committed Feb 2, 2024
1 parent c6af8ec commit a0760da
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
# note: OS `liburing.so` tend to be outdated! Try it, run test, if no error is raised its good :)
package = 'liburing'
threads = cpu_count()//2 or 1 # use half of cpu resources
sources = 'liburing/*.pyx'
# sources = 'liburing/*.pyx'
sources = 'liburing/helper.pyx'
language = 'c'
lib_name = f'{package}.*'

Expand All @@ -20,11 +21,13 @@
if __debug__: # `gcc --help=common` for more info
Options.fast_fail = False
Options.annotate = True # generate `*.html` file for debugging & optimization purposes.
compile_args = ['-Oz', '-g0']
compile_args = ['Oz', 'g0']
else:
Options.fast_fail = True
Options.annotate = False
compile_args = ['-O3', '-g0']
compile_args = ['O3', 'g0']

compile_args = [] # bypass

if os_liburing: # compile using OS `liburing.so`
extension = [Extension(name=lib_name, # where the `.so` will be saved.
Expand Down

0 comments on commit a0760da

Please sign in to comment.