File tree 2 files changed +5
-1
lines changed
mmdeploy/backend/onnxruntime
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ def get_ops_path() -> str:
13
13
candidates = [
14
14
'../../lib/libmmdeploy_onnxruntime_ops.so' ,
15
15
'../../lib/mmdeploy_onnxruntime_ops.dll' ,
16
+ '../../lib/libmmdeploy_onnxruntime_ops.dylib' ,
16
17
]
17
18
return get_file_path (os .path .dirname (__file__ ), candidates )
18
19
@@ -26,5 +27,6 @@ def get_lib_path() -> str:
26
27
candidates = [
27
28
'../../lib/libonnxruntime.so*' ,
28
29
'../../lib/onnxruntime.dll' ,
30
+ '../../lib/libmmdeploy_onnxruntime_ops.dylib' ,
29
31
]
30
32
return get_file_path (os .path .dirname (__file__ ), candidates )
Original file line number Diff line number Diff line change @@ -138,7 +138,9 @@ def get_extensions():
138
138
# environment, the compiler will choose the appropriate compiler
139
139
# to compile those cpp files, so there is no need to add the
140
140
# argument
141
- if platform .system () != 'Windows' :
141
+ if platform .system () == 'Darwin' :
142
+ extra_compile_args ['cxx' ] = ['-std=c++17' ]
143
+ elif platform .system () != 'Windows' :
142
144
extra_compile_args ['cxx' ] = ['-std=c++14' ]
143
145
144
146
include_dirs = []
You can’t perform that action at this time.
0 commit comments