On Mon, 24 Mar 2025 14:41:19 +0800
Yuyi Wang wrote:
> > 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.

Thanks to MSYS2 guys' work, I have successfully built LLVM package with Polly,
Clang, compiler-rt, and libunwind packages version 20.1.2.
I still trying built libc++ and libc++abi, but it is not going smoothly.

Is there any other blocker to build Rust for cygwin?

-- 
Takashi Yano <takashi.y...@nifty.ne.jp>

-- 
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