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

Do not link native library when cross compiling for docs #145

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

marc0246
Copy link
Contributor

This fixes #144 by only bailing out on the linking if cross-compilation is going on, which excludes build scripts and proc-macros. I really hate this solution, and I wish there was some other way to go about this, but at least this doesn't penalize any crates in the sense that the dependent library's author doesn't need to do anything. I just pray that this doesn't run into more unforseen complications.

Copy link

google-cla bot commented Nov 27, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@marc0246
Copy link
Contributor Author

marc0246 commented Nov 27, 2023

Is there no way to sign the CLA without revealing my email address?

@antiagainst
Copy link
Collaborator

LGTM; but wanted to have @chyyran take a look too.

@antiagainst antiagainst changed the title Fix #144 Do not link native library when cross compiling for docs Nov 29, 2023
@chyyran
Copy link
Contributor

chyyran commented Nov 29, 2023

lgtm

@antiagainst antiagainst merged commit 4436d18 into google:main Nov 29, 2023
11 checks passed
@marc0246 marc0246 deleted the cross-compilation branch November 29, 2023 16:31
@marc0246
Copy link
Contributor Author

Can we please get a patch version bump?

@antiagainst
Copy link
Collaborator

Can we please get a patch version bump?

Sure; pushed a new release.

@marc0246
Copy link
Contributor Author

Awesome, thanks a lot!

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.

Crates that use shaderc at build time fail to build on docs.rs
3 participants