-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fetch_platform_specific_dependencies etc fails for non-x86 architectures #5864
Comments
This doesn't seem to be directly due to the fetch tests introduced in #5349, but rather due to the fact that the cross_compile module doesn't support platforms other than x86 (https://github.com/rust-lang/cargo/blob/master/tests/testsuite/support/cross_compile.rs#L111). Looking at some of the other tests in the testsuite that rely on the cross_compile module, they simply do an early return if it has been disabled (e.g. https://github.com/rust-lang/cargo/blob/master/tests/testsuite/install.rs#L1049). So it looks like the simplest way to fix this would be to do the same with the two failing fetch tests. Give me a bit and I'll write up a short PR for that. |
fetch: skip target tests when cross_compile is disabled It was reported in #5864 that the fetch-by-target tests fail when run on a non-x86 platform. This is due to the cross_compile module being disabled when running on non-x86 platforms. Fix this by skipping the two fetch tests which rely on the cross_compile module, when cross_compile has been disabled. Signed-off-by: Brandon Williams <bmwill@google.com>
Forgot to include the special phrase "fixes #5864" in #5870 @alexcrichton would you mind closing this issue? Unless you'd like to wait for @infinity0 to verify that #5870 indeed fixes the issue on their platform. |
Sure thing sounds good to me! If it's still an issue we can always reopen! |
These tests are disabled to allow building on release architecture. Bug: rust-lang/cargo#5864 Last-Update: 2018-08-05 Gbp-Pq: Name 2005_disable_fetch_cross_tests.patch
These tests are disabled to allow building on release architecture. Bug: rust-lang/cargo#5864 Last-Update: 2018-08-05 Gbp-Pq: Name 2005_disable_fetch_cross_tests.patch
These tests are disabled to allow building on release architecture. Bug: rust-lang/cargo#5864 Last-Update: 2018-08-05 Gbp-Pq: Name 2005_disable_fetch_cross_tests.patch
From #5349 @bmwill
See e.g.
The text was updated successfully, but these errors were encountered: