> I mean it is some kind of cross compiler.

Yes. Rustc is a cross compiler powered by LLVM.

> ...is it possible to build Rust compiler itself by the cross-compiler?

Theoretically yes. Actually once a GitHub user @Ookiineko succeeded before, but
now the account has been deleted. I think the largest blocker is LLVM itself.
The latest version of LLVM provided by cygwin is 8.0, and 11.0 by MSYS2, while
rustc needs LLVM 17.0 at least. @Ookiineko added some patches to LLVM to make it
work, but they were not committed to upstream, but I haven't understand all of
them yet.

--
Yuyi Wang

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to