Skip to content

Don't try to build shaderc native library when building for docs.rs#130

Merged
antiagainst merged 1 commit intogoogle:mainfrom
chyyran:build-docsrs
Jan 17, 2023
Merged

Don't try to build shaderc native library when building for docs.rs#130
antiagainst merged 1 commit intogoogle:mainfrom
chyyran:build-docsrs

Conversation

@chyyran
Copy link
Copy Markdown
Contributor

@chyyran chyyran commented Jan 17, 2023

This fixes Windows cross-compile builds for crates that depend on shaderc-rs.

example failed build: https://docs.rs/crate/librashader/0.1.0-beta.3/builds/721331

When the DOCS_RS environment variable is found don't even bother to build the native library since it is only needed for docs. It also saves time for Linux docs.rs builds that really have no need to link to the native library either.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Jan 17, 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.

@chyyran
Copy link
Copy Markdown
Contributor Author

chyyran commented Jan 17, 2023

CLA signed @googlebot

@chyyran chyyran changed the title Don't try to build shaderc when building for docs.rs Don't try to build shaderc native library when building for docs.rs Jan 17, 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