Results 1 to 4 of 4

Thread: How can we add -O2 flag into .pro file?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Posts
    93
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default Re: How can we add -O2 flag into .pro file?

    Thanks!

    Yes, I mean -O2. In debug mode, how can we add this optimization flag from .pro file?

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: How can we add -O2 flag into .pro file?

    I'm a bit confused as to why you would want to. Normally you want to debug your code whilst in debug mode, so you want the least amount of optimisation possible. Only when your code works would you want to increase optimisation to increase speed.

    Adding -O2 to debug build will cause all sorts of problem for debugging. Are you sure sure this is what you want?

Similar Threads

  1. library in .pro file for qt
    By fbmfbm in forum Qt Programming
    Replies: 18
    Last Post: 9th July 2010, 09:37
  2. Replies: 2
    Last Post: 28th June 2009, 13:39
  3. Replies: 2
    Last Post: 8th November 2007, 21:15
  4. need script to change qmake .pro file
    By rajeshs in forum Qt Programming
    Replies: 5
    Last Post: 7th July 2007, 18:53
  5. Can I use the Sql Module without chanage .pro file?
    By fengtian.we in forum Qt Programming
    Replies: 9
    Last Post: 21st May 2007, 11:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.