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. How to learn which compiler flags qmake uses for a target or a source file?
Forum Updated to NodeBB v4.3 + New Features

How to learn which compiler flags qmake uses for a target or a source file?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 141 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.
  • M Offline
    M Offline
    MMD18
    wrote on last edited by MMD18
    #1

    I'm interested in using such a variable for a single file to just add some other flags to it.
    I've looked with message() into all variables I could find and they don't contain all flags from compile output. I can, of cause, copy all flags usable from the console I use to compile a single file, but it will contain irrelevant and full paths, and I want .pro file usable by other people, of cause.
    I've already checked these variables:
    QMAKE_CXX
    QMAKE_CXXFLAGS_RELEASE
    QMAKE_CXXFLAGS
    QMAKE_LFLAGS_RELEASE
    They all are very very far from all the flags listed in compile output.
    Consequent questions:
    At which exact moment those flags for the main target (the app itself) are evaluated?
    Is it possible to use those flags for a custom target? I would add them to target_name.commands.

    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