Results 1 to 5 of 5

Thread: Adding -O3 compiler option in Qt Creator

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanked 342 Times in 324 Posts

    Default Re: Adding -O3 compiler option in Qt Creator

    You can always check the command used to invoke the compiler, eg
    Qt Code:
    1. g++ -c -O3 -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPO
    2. RT -DQT_DLL -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNO
    3. W -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I'../../../
    4. ../Qt/include/QtCore' -I'../../../../Qt/include/QtGui' -I'../../../../Qt/include
    5. /QtSql' -I'../../../../Qt/include' -I'.' -I'../../../../Qt/include/ActiveQt' -I'
    6. debug' -I'../../../../Qt/mkspecs/default' -o debug/main.o main.cpp
    To copy to clipboard, switch view to plain text mode 
    You can see the -O3 flag added to compiler options.
    Btw. it worked with the -j switch, because -j is the make command option, whereas "-O3" is the compiler option.

  2. The following user says thank you to stampede for this useful post:

    Momergil (28th June 2014)

Similar Threads

  1. Replies: 2
    Last Post: 11th March 2014, 12:02
  2. how to add C++ compiler to QT creator?
    By costa in forum Qt Tools
    Replies: 3
    Last Post: 25th February 2014, 15:44
  3. Compiler Option /Zc:wchar_t
    By Vivi in forum Qt Programming
    Replies: 1
    Last Post: 15th April 2013, 00:43
  4. Replies: 7
    Last Post: 26th October 2012, 22:18
  5. Unable to open Help option in Qt creator.
    By Channareddy in forum Qt Tools
    Replies: 2
    Last Post: 22nd July 2011, 10:48

Tags for this Thread

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.