简体   繁体   English

如何使用gcc代替clang

[英]How to use gcc instead of clang

I am trying to build an android version from Github and I would like to compile it with gcc, the instructions say to input "make efi_img -jN" but i always get a clang error. 我正在尝试从Github构建一个android版本,我想用gcc编译它,说明说要输入“ make efi_img -jN”,但我总是会听到一个clang错误。 I am very new with Unix so i would appreciate any help using gcc instead of clang. 我对Unix非常陌生,因此,我希望使用gcc而不是clang提供任何帮助。

First find out the name of the compiler variable in the Makefile. 首先在Makefile中找出编译器变量的名称。 If it's a C project it's probably CC . 如果是C项目,则可能是CC If it's a C++ project it's probably CXX . 如果是C ++项目,则可能是CXX

Then invoke make by assigning the name of the GCC executable to that variable: 然后通过将GCC可执行文件的名称分配给该变量来调用make

make CXX=g++ efi_img -jN

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

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