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

Cull unused libc dependency on windows #101

Merged
merged 1 commit into from Sep 8, 2020

Conversation

MaulingMonkey
Copy link
Contributor

@MaulingMonkey MaulingMonkey commented Sep 8, 2020

libc is already not used on windows, no need to download & compile it:

num_cpus/src/lib.rs

Lines 34 to 35 in 9b146fa

#[cfg(not(windows))]
extern crate libc;

(EDIT: looks like this shaves a good 15 seconds off each appveyor build? 182 vs 185)

@seanmonstar seanmonstar merged commit b423db0 into seanmonstar:master Sep 8, 2020
@seanmonstar
Copy link
Owner

Nice catch, thanks!

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.

None yet

2 participants