[Interest] is QT_POINTER_SIZE safe when cross compiling?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Tue Jan 29 00:51:22 CET 2019


Il 29/01/19 00:21, roland at logikalsolutions.com ha scritto:
> I tried navigating down the headers but was unsuccessful at finding
> the definition. Okay, I lost patience digging for it.

Use code.woboq.org

> https://code.woboq.org/qt5/qtbase/src/corelib/global/qprocessordetection.h.html#_M/QT_POINTER_SIZE




> If I'm compiling on a 64-bit host for a 32-bit target, is
> QT_POINTER_SIZE going to return the correct number of bytes for the
> 32-bit target?

Yes, the various Qt arch macros are for the target system, not the host.

HTH,

-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190129/a70e5139/attachment.bin>


More information about the Interest mailing list