Skip to content
New issue

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

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

Already on GitHub? # to your account

Error building with musl #40

Open
Yamakaky opened this issue Jul 31, 2021 · 0 comments
Open

Error building with musl #40

Yamakaky opened this issue Jul 31, 2021 · 0 comments

Comments

@Yamakaky
Copy link

Yamakaky commented Jul 31, 2021

When building a crate with the x86_64-unknown-linux-musl target, vcpkg exits with a NotMSVC error. If musl is not supported, it should print a more specific error.

vcpkg-rs/src/lib.rs

Lines 1331 to 1346 in 6393bd1

} else if target == "x86_64-unknown-linux-gnu" {
Ok(TargetTriplet {
triplet: "x64-linux".into(),
is_static: true,
lib_suffix: "a".into(),
strip_lib_prefix: true,
})
} else if target == "aarch64-apple-ios" {
Ok(TargetTriplet {
triplet: "arm64-ios".into(),
is_static: true,
lib_suffix: "a".into(),
strip_lib_prefix: true,
})
} else if !target.contains("-pc-windows-msvc") {
Err(Error::NotMSVC)

Note that

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant