Skip to content

Commit

Permalink
Merge pull request rapidsai#4222 from rapidsai/branch-21.08
Browse files Browse the repository at this point in the history
Forward-merge `branch-21.08` into `branch-21.10`
  • Loading branch information
ajschmidt8 authored Sep 22, 2021
2 parents 816b782 + 09a64f4 commit 094d7d2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,20 @@ class cuml_build_ext(cython_build_ext, object):
boolean_options = ["singlegpu"] + cython_build_ext.boolean_options

def build_extensions(self):
try:
# Silence the '-Wstrict-prototypes' warning
self.compiler.compiler_so.remove("-Wstrict-prototypes")
except Exception:
pass
def remove_flags(compiler, *flags):
for flag in flags:
try:
compiler.compiler_so = list(
filter((flag).__ne__, compiler.compiler_so)
)
except Exception:
pass
# Full optimization
self.compiler.compiler_so.append("-O3")
# No debug symbols, full optimization, no '-Wstrict-prototypes' warning
remove_flags(
self.compiler, "-g", "-G", "-O1", "-O2", "-Wstrict-prototypes"
)
cython_build_ext.build_extensions(self)

def initialize_options(self):
Expand Down

0 comments on commit 094d7d2

Please sign in to comment.