[Interest] Dumping compiler flags

BeneschTech LLC chris at beneschtech.com
Tue Dec 21 19:48:41 CET 2021


[image: image.png]
I have a fairly complex QT setup, but this is an easy way to see what its
doing.

On Tue, Dec 21, 2021 at 8:44 AM Konrad Rosenbaum <konrad at silmor.de> wrote:

> Hi,
>
> On 21/12/2021 15:53, Bob Hood wrote:
> > I seem to recall, in the dim, distant past, using a Qt utility
> > (qmake?) to display the compiler flags that were used to build the Qt
> > version.  Am I remember that correctly? If so, can somebody give me
> > the command line for displaying that info?
>
> Indirectly: "qmake -query" will tell you all the directories where you
> find parts of Qt and the QMAKE_SPEC that will be used for your own
> projects - usually Qt was build with the same spec. What exact compiler
> flags will be used is something that you'll find inside the definition
> of that spec.
>
> You find the spec definition in
> $QT_HOST_DATA/mkspecs/$QMAKE_SPEC/qmake.conf you have to follow all the
> includes as well as $QT_HOST_DATA/mkspecs/q*.pri
>
> If you really want the compile settings of Qt and not the ones you
> should use for your own project, then you need access to the actual Qt
> build directory where you'll find those settings in the cache files.
>
> ...at least that's all I'm aware of. Maybe someone else knows a magic
> bullet merchand? ;-)
>
>
>
>      Konrad
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>


-- 
Chris Benesch
BeneschTech, LLC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20211221/08c1f4fd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 333138 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20211221/08c1f4fd/attachment-0001.png>


More information about the Interest mailing list