提交 19158d37 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Only remove the quotes around the rpath on mac.

上级 c4da310f
...@@ -241,7 +241,10 @@ class DnnVersion(Op): ...@@ -241,7 +241,10 @@ class DnnVersion(Op):
def c_compile_args(self): def c_compile_args(self):
if config.dnn.library_path: if config.dnn.library_path:
return ['-Wl,-rpath,' + config.dnn.library_path] if sys.platform == 'darwin':
return ['-Wl,-rpath,' + config.dnn.library_path]
else:
return ['-Wl,-rpath,"' + config.dnn.library_path + '"']
return [] return []
def c_support_code(self): def c_support_code(self):
...@@ -379,7 +382,10 @@ class DnnBase(COp): ...@@ -379,7 +382,10 @@ class DnnBase(COp):
def c_compile_args(self): def c_compile_args(self):
if config.dnn.library_path: if config.dnn.library_path:
return ['-Wl,-rpath,' + config.dnn.library_path] if sys.platform == 'darwin':
return ['-Wl,-rpath,' + config.dnn.library_path]
else:
return ['-Wl,-rpath,"' + config.dnn.library_path + '"']
return [] return []
def c_code_cache_version(self): def c_code_cache_version(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论