What are the merits of debug_and_release config feature in qmake?

房东的猫 提交于 2019-12-07 02:53:15

问题


I can see only one merit of the feauture: we are able to issue the make all commad.

Well, I do not call make in any point of my developer's life. I use Qt Creator and when I build the project I want it strictly as debug or as release. I guess this is an expeted behaviour by people.

But debug_and_release is on by default in Qt Creator. Is there a merit in this I can't see? Is there some sense in the unintuitive mess like this:

CONFIG( debug, debug|release ) {
    # debug
} else {
    # release
}

which people are learning by making mistakes and asking WTF questions all over the internet?

Am I missing something?


回答1:


I switch it off:

CONFIG -= debug_and_release
CONFIG( debug, debug|release )  {
  CONFIG -= release
}
else {
  CONFIG -= debug
  CONFIG += release
}

UPD.

I've got it. My question is completely wrong. debug_and_release have not much to do with debug and release.



来源:https://stackoverflow.com/questions/11913770/what-are-the-merits-of-debug-and-release-config-feature-in-qmake

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!