Closed cuviper closed 8 years ago
See https://github.com/rust-lang/rust/issues/34962 (that would be a first step to fix the issue).
Rustc currently requires LLVM to support x86
, aarch64
, arm
, mips
, powerpc
and nacl
targets. You cannot omit any of these unless you patch rustc code in various places.
We "sort of" support LLVM configured with different targets since #27937. It is not the case we don't have any code to support that use case.
Thanks for the links.
@nagisa Where else would you expect problems? I found the entire "make check" was fine except for this one atomic-lock-free
test.
Anyway, Fedora's LLVM maintainers agreed to add "Mips" next time they rebuild, so I guess this isn't a huge issue for me. But if Rust ever decides to add another "required" target, it would be good to understand how urgent that is to comply.
In
run-make/atomic-lock-free/Makefile
, it attempts to build its script for many different architectures. However, when using an external LLVM build, it may not have all architectures available, so the test will fail despite anything Rust could do. For example, on Fedora 24 I have:In particular this doesn't have "Mips", so the
mips
andmipsel
targets will fail inatomic-lock-free
. It would be nicer if this test only attempted architectures that are included in one's build of LLVM.