如何关闭linux上的gcc预处理器? [英] How do I turn off the gcc preprocessor on linux?

查看:119
本文介绍了如何关闭linux上的gcc预处理器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经googled 关闭linux上的gcc预处理器现在(使用确切的短语),一切都是不相关的。例如,我想关闭所有除了预处理器(与我想要的相反)或加压警告。有没有人知道一种方法来禁用预处理器?我发现一个Facebook开发和声明是更快,我想测试它。

I have googled turning off the gcc preprocessor on linux for a good while now (using that exact phrase) and everything has been irrelevant. For example I want to turn off everything except the preprocessor (the opposite of what I want) or pressurising warnings. Does anyone know of a way to disable the preprocessor? I found one that Facebook developed and claimed is faster, and I would like to test it out.

推荐答案

并且它的工作原理:

命名另一个/更新的预处理器cpp并将其放在您的路径中,并将原始cpp重命名为cpp-other或cpp -orig。它会工作很好,考虑到你试图替换cpp无论如何。

Name the other/newer preprocessor "cpp" and put it in your path, and rename the original cpp to cpp-other or cpp-orig. It'll work great considering you are attempting to replace cpp anyways.

这篇关于如何关闭linux上的gcc预处理器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆