Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the openssl path for the macOS builds. #38

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

iddm
Copy link
Collaborator

@iddm iddm commented Mar 3, 2023

Changes the way the build script figures out the openssl library path. Now it takes into account the commonly-used OPENSSL_PREFIX environment variable and attempts to probe certain pre-defined directories to figure out the path.

@iddm iddm requested a review from MeirShpilraien March 3, 2023 12:36
"/usr/local/opt/openssl@1.1",
"/opt/homebrew/opt/openssl@1.1",
];
probe_paths(&PATHS).unwrap_or("")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to fail the build in case we did not find a match?

Copy link
Collaborator Author

@iddm iddm Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily, in case there are other, probably default paths, where the library might be located. We just checked that we couldn't find it on our own, but that doesn't mean it isn't there.

Copy link
Contributor

@MeirShpilraien MeirShpilraien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small question, not a blocker.

Changes the way the build script figures out the openssl library path. Now
it takes into account the commonly-used OPENSSL_PREFIX environment variable
and attempts to probe certain pre-defined directories to figure out the path.
@iddm iddm force-pushed the fix-openssl-on-macos branch from a876ee8 to 546715b Compare March 3, 2023 12:50
@iddm iddm merged commit 3cab245 into refactoring_rust_api Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants