Commit 2cabeaea authored by rusty1s's avatar rusty1s
Browse files

Wno-sign-compare

parent f844f330
...@@ -30,7 +30,9 @@ def get_extensions(): ...@@ -30,7 +30,9 @@ def get_extensions():
for main, suffix in product(main_files, suffices): for main, suffix in product(main_files, suffices):
define_macros = [] define_macros = []
extra_compile_args = {'cxx': ['-O2', '-Wno-sign-compare']} extra_compile_args = {'cxx': ['-O2']}
if not os.name == 'nt': # Not on Windows:
extra_compile_args['cxx'] += ['-Wno-sign-compare']
extra_link_args = ['-s'] extra_link_args = ['-s']
info = parallel_info() info = parallel_info()
...@@ -48,8 +50,8 @@ def get_extensions(): ...@@ -48,8 +50,8 @@ def get_extensions():
define_macros += [('WITH_CUDA', None)] define_macros += [('WITH_CUDA', None)]
nvcc_flags = os.getenv('NVCC_FLAGS', '') nvcc_flags = os.getenv('NVCC_FLAGS', '')
nvcc_flags = [] if nvcc_flags == '' else nvcc_flags.split(' ') nvcc_flags = [] if nvcc_flags == '' else nvcc_flags.split(' ')
nvcc_flags += ['--expt-relaxed-constexpr'] nvcc_flags += ['--expt-relaxed-constexpr', '-O2']
nvcc_flags += ['-O2'] if not os.name == 'nt': # Not on Windows:
nvcc_flags += ['-Wno-sign-compare'] nvcc_flags += ['-Wno-sign-compare']
extra_compile_args['nvcc'] = nvcc_flags extra_compile_args['nvcc'] = nvcc_flags
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment