提交 247a9875 authored 作者: Mang Wang's avatar Mang Wang

Ignore the '-Wl,-rpath' preargs in Microsoft linker

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