简体   繁体   English

在GCC上构建的Clang

[英]Clang built on GCC

I was searching online to see if clang supported reproducible builds. 我在网上搜索,看看clang是否支持可复制的版本。 I read that GCC guaranteed reproducible builds using the -frandom-seed flag. 我读到GCC使用-frandom-seed标志保证了可复制的构建。 I wanted to know if clang supports that flag and I could not find anything regarding that.I then came here which had a statement such as: 我想知道clang是否支持该标志,而我对此一无所获,然后来到这里 ,上面有一条语句:

...two consecutive builds of (GCC-built) Clang ...(GCC构建的)Clang的两个连续版本

My question is what is GCC built clang ? 我的问题是什么是GCC内置的lang? I am currently aware of only 2 compilers (Microsoft , GCC (Coudl be Cygwin/Mingw flavor) ) and the third one was suppose to be clang. 我目前只知道2个编译器(Microsoft,GCC(Coudl是Cygwin / Mingw风格)),第三个是clang。 My question is what does clang (GCC built) mean ? 我的问题是c(GCC内置)是什么意思? Built from source ? 从源头构建? I would like to think that clang is a totally different compiler from GCC and Windows. 我想认为clang是与GCC和Windows完全不同的编译器。 Also this documentation here states 另外, 文档在此声明

Clang has experimental support for targeting “Cygming” (Cygwin / MinGW) platforms. Clang具有针对“ Cygming”(Cygwin / MinGW)平台的实验性支持。

What does that mean ? 这意味着什么 ? Does clang mean that it uses Mingw GCC as a compiler ? clang意味着它使用Mingw GCC作为编译器吗? What does targeting mean here ? 定位在这里是什么意思?

To my mind, this phrase means clang was built from source using GCC as a compiler . 在我看来,这句话意味着clang是使用GCC作为编译器从源代码构建的 Then, clang is a compiler , so it can't use GCC as a compiler. 那么,clang 是一个编译器 ,因此它不能将GCC用作编译器。

Compilers are written in programming languages to be able to compile code written in a programming language. 编译器是用编程语言编写的,以便能够编译用编程语言编写的代码。 This means, a compiler can compile a compiler or even itself . 这意味着, 编译器可以编译一个编译器甚至自己

If you don't know is feature X supported in product Y, please, read the docs on product Y. If this feature isn't mentioned, it's not supported and vice versa. 如果您不知道产品Y是否支持功能X,请阅读产品Y上的文档 。如果未提及此功能,则不支持此功能,反之亦然。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM