提交 daab99c6 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Have it not end up in preargs2 anyway.

上级 e205ce2a
...@@ -250,6 +250,7 @@ class NVCC_compiler(Compiler): ...@@ -250,6 +250,7 @@ class NVCC_compiler(Compiler):
# '--gpu-code=compute_13', # '--gpu-code=compute_13',
# nvcc argument # nvcc argument
preargs1 = [] preargs1 = []
preargs2 = []
for pa in preargs: for pa in preargs:
if pa.startswith('-Wl,'): if pa.startswith('-Wl,'):
preargs1.append('-Xlinker') preargs1.append('-Xlinker')
...@@ -264,8 +265,8 @@ class NVCC_compiler(Compiler): ...@@ -264,8 +265,8 @@ class NVCC_compiler(Compiler):
if pa.startswith(pattern): if pa.startswith(pattern):
preargs1.append(pa) preargs1.append(pa)
preargs2 = [pa for pa in preargs else:
if pa not in preargs1] # other arguments preargs2.append(pa)
# Don't put -G by default, as it slow things down. # Don't put -G by default, as it slow things down.
# We aren't sure if -g slow things down, so we don't put it by default. # We aren't sure if -g slow things down, so we don't put it by default.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论