Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [solved] passing arguments to the compiler
QtWS25 Last Chance

[solved] passing arguments to the compiler

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    I'm optimizing the performance of a small program, and someone in another forum suggested that I use SSE4.1. I've checked my compiler, and it appears to have support for this, but I need to send it a flag:

    @Support for SSE4.1 built-in functions and code generation are available via -msse4.1.
    Support for SSE4.2 built-in functions and code generation are available via -msse4.2.@

    My first thought was to use the variable QMAKE_CXXFLAGS_DEBUG in my .pro file, but according to the documentation:

    bq. This variable contains the C++ compiler flags for creating a debuggable application. The value of this variable is typically handled by qmake or qmake.conf and rarely needs to be modified.

    So, I interpret that to mean I'm going about this the wrong way. Can someone edify me?

    Thanks.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      p-himik
      wrote on last edited by
      #2

      QMAKE_CXXFLAGS[_DEBUG|_RELEASE] is exactly what you need. Documentation says that you rare need to modify them but sometimes you are.

      1 Reply Last reply
      0
      • mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        OK, thank you. Marked as solved.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved