Results 1 to 1 of 1

Thread: change compilation optimization flags?

  1. #1
    Join Date
    Sep 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Red face change compilation optimization flags?

    Hi all

    I am compiling my project under Mac, after adding in the .Pro file
    CONFIG(release, debug|release):QMAKE_CXXFLAGS += -O3 -fomit-frame-pointer
    however, i always see that the command where g++ is ran, includes -Os. i would like to remove it.

    i tried several approaches, like
    CONFIG(release, debug|release):QMAKE_CFLAGS_RELEASE -= -Os
    CONFIG(release, debug|release):QMAKE_CXXFLAGS -= -Os

    and
    CONFIG(release, debug|release):QMAKE_CXXFLAGS = -O3 -fomit-frame-pointer
    CONFIG(release, debug|release):QMAKE_CFLAGS_RELEASE = -O3 -fomit-frame-pointer
    (no +)

    but nothing - Os ALWAYS appear.

    how do I change this?

    i found the qmake.conf file, which includes a mac-g++.conf file, but i cannot change it, and chmod doesnt work: chmod: mac-g++.conf: Operation not permitted

    any ideas?

    thanks very much
    Lior
    Last edited by liormessinger; 16th September 2009 at 17:24. Reason: updated contents

Similar Threads

  1. how to change backgroup color, button color and shape?
    By lzha022 in forum Qt Programming
    Replies: 10
    Last Post: 16th June 2008, 22:25

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.