提交 a94cf43c authored 作者: Mang Wang's avatar Mang Wang

repair the bug caused by the -rpath option is not understood by the Microsoft linker

上级 260fc9a7
......@@ -260,8 +260,10 @@ class NVCC_compiler(Compiler):
preargs2 = []
for pa in preargs:
if pa.startswith('-Wl,'):
preargs1.append('-Xlinker')
preargs1.append(pa[4:])
# the -rpath option is not understood by the Microsoft linker
if sys.platform != 'win32':
preargs1.append('-Xlinker')
preargs1.append(pa[4:])
continue
for pattern in ['-O', '-arch=', '-ccbin=', '-G', '-g', '-I',
'-L', '--fmad', '--ftz', '--maxrregcount',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论