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

Try to fix -Wl args to nvcc.

上级 dd41f3e9
...@@ -251,6 +251,10 @@ class NVCC_compiler(Compiler): ...@@ -251,6 +251,10 @@ class NVCC_compiler(Compiler):
# nvcc argument # nvcc argument
preargs1 = [] preargs1 = []
for pa in preargs: for pa in preargs:
if pa.startswith('-Wl,'):
preargs1.append('-Xlinker')
preargs1.append(pa[4:])
continue
for pattern in ['-O', '-arch=', '-ccbin=', '-G', '-g', '-I', for pattern in ['-O', '-arch=', '-ccbin=', '-G', '-g', '-I',
'-L', '--fmad', '--ftz', '--maxrregcount', '-L', '--fmad', '--ftz', '--maxrregcount',
'--prec-div', '--prec-sqrt', '--use_fast_math', '--prec-div', '--prec-sqrt', '--use_fast_math',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论