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

Wno-sign-compare

parent f844f330
......@@ -30,7 +30,9 @@ def get_extensions():
for main, suffix in product(main_files, suffices):
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']
info = parallel_info()
......@@ -48,9 +50,9 @@ def get_extensions():
define_macros += [('WITH_CUDA', None)]
nvcc_flags = os.getenv('NVCC_FLAGS', '')
nvcc_flags = [] if nvcc_flags == '' else nvcc_flags.split(' ')
nvcc_flags += ['--expt-relaxed-constexpr']
nvcc_flags += ['-O2']
nvcc_flags += ['-Wno-sign-compare']
nvcc_flags += ['--expt-relaxed-constexpr', '-O2']
if not os.name == 'nt': # Not on Windows:
nvcc_flags += ['-Wno-sign-compare']
extra_compile_args['nvcc'] = nvcc_flags
name = main.split(os.sep)[-1][:-4]
......
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