【问题标题】:How to get colored error message when use gcc in makefile?在makefile中使用gcc时如何获得彩色错误消息?
【发布时间】:2013-10-15 10:46:35
【问题描述】:

Gcc 在 OS X 上在 shell 中使用时输出彩色错误消息和警告消息,但在 makefile 中使用时,输出消息是单色的。

在makefile中使用gcc时如何得到彩色消息?

【问题讨论】:

    标签: macos gcc makefile


    【解决方案1】:

    尝试添加:

    -fdiagnostics-color=always
    

    在 Makefile 中调用 gcc。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-23
      • 1970-01-01
      • 2021-12-15
      相关资源
      最近更新 更多