-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sys): Support explicit dynamic linking of onnxruntime (#295)
Previously, if static library files were found, the build script in ort-sys would always prefer static linking. This PR introduces a new env variable, ORT_PREFER_DYNAMIC_LINK, that can be set (to 1 or "true") to use dynamic linking even if the static library files are present in the onnxruntime path. Additionally, since cuda and tensorrt require dynamic linking, static linking is disabled when these features are present.
- Loading branch information
1 parent
c882c58
commit ae7b594
Showing
1 changed file
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters