How do I capture all of my compiler's output to a file?

前端 未结 10 2469
無奈伤痛
無奈伤痛 2020-12-23 09:16

I\'m building an opensource project from source (CPP) in Linux. This is the order:

$CFLAGS=\"-g Wall\" CXXFLAGS=\"-g Wall\" ../trunk/configure --prefix=/some         


        
10条回答
  •  [愿得一人]
    2020-12-23 09:41

    Assume you want to hilight warning and error from build ouput:

    make |& grep -E "warning|error"
    

提交回复
热议问题