onnxruntime: fix rpath on darwin
This commit is contained in:
@@ -147,6 +147,10 @@ effectiveStdenv.mkDerivation (finalAttrs: {
|
|||||||
"return PathString{};" \
|
"return PathString{};" \
|
||||||
"return PathString(\"$out/lib/\");"
|
"return PathString(\"$out/lib/\");"
|
||||||
''
|
''
|
||||||
|
+ lib.optionalString effectiveStdenv.hostPlatform.isDarwin ''
|
||||||
|
substituteInPlace cmake/onnxruntime.cmake \
|
||||||
|
--replace-fail "INSTALL_NAME_DIR @rpath" "INSTALL_NAME_DIR $out/lib"
|
||||||
|
''
|
||||||
+ lib.optionalString rocmSupport ''
|
+ lib.optionalString rocmSupport ''
|
||||||
patchShebangs tools/ci_build/hipify-perl
|
patchShebangs tools/ci_build/hipify-perl
|
||||||
''
|
''
|
||||||
|
|||||||
Reference in New Issue
Block a user