Why do I need a C ++ compiler to compile Rust?

This may be a very stupid question, but I wonder why the Rust compiler (written in Rust) requires a C ++ compiler.

I mean, there must be a pretty pre-compiled Rust compiler from the distribution, right?

+6
source share
1 answer

This is a really reasonable question. The answer is that the rust source currently contains a slightly revised version of LLVM , LLVM is written in C ++ and does not extend into binary form. Therefore, to create it, you need a C ++ compiler.

+12
source

Source: https://habr.com/ru/post/982624/


All Articles