提交 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,6 +260,8 @@ class NVCC_compiler(Compiler): ...@@ -260,6 +260,8 @@ class NVCC_compiler(Compiler):
preargs2 = [] preargs2 = []
for pa in preargs: for pa in preargs:
if pa.startswith('-Wl,'): if pa.startswith('-Wl,'):
# the -rpath option is not understood by the Microsoft linker
if sys.platform != 'win32':
preargs1.append('-Xlinker') preargs1.append('-Xlinker')
preargs1.append(pa[4:]) preargs1.append(pa[4:])
continue continue
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论