[Qt-interest] different CONFIG+= on debug/release
Israel Brewster
israel at frontierflying.com
Tue Dec 8 19:10:10 CET 2009
Maybe someone can come up with an answer for this one: I want to
change the config line (in my .pro file) depending on whether I am
building in release mode or debug mode. This seems like it should be
straightforward, based on the documentation ( ): just put debug { and
and release { blocks in my .pro file like so:
deubg {
CONFIG += x86_64
}
release {
CONFIG += x86 ppc
}
The problem I am running into is that it appears that both blocks are
being run when I compile, regardless of whether I choose a debug or
release build, as evidenced by the "-arch i386 -arch ppc -arch x86_64"
string in all the compile lines. The end result is that the build
fails on linking, as my debug build of Qt doesn't have all the
architectures due to issues building Qt. It rather looks like Qt
Creator is trying to build both debug and release code (thus defining
both) regardless of which I choose, but I don't really know. How can I
fix this? Thanks.
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091208/be6315e6/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Israel Brewster.vcf
Type: text/directory
Size: 417 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091208/be6315e6/attachment.bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091208/be6315e6/attachment-0001.html
More information about the Qt-interest-old
mailing list