[Interest] [OS X] How to enable ARC for *.mm files (which qmake var)?
Thiago Macieira
thiago.macieira at intel.com
Fri Jan 17 00:55:48 CET 2014
On sexta-feira, 17 de janeiro de 2014 00:07:07, Till Oliver Knoll wrote:
> QMAKE_CXXFLAGS += -fobjc-arc
> QMAKE_CFLAGS_DEBUG += -fobjc-arc
> QMAKE_CFLAGS_RELEASE += -fobjc-arc
>
> That is, the expected -fobjc-arc flag is only applied for clang++.
"CXXFLAGS" applies to C++ and Objective C++. If you want it for C and
Objective C, you need QMAKE_CFLAGS.
Note that this will get the flags for plain C and C++ sources too. You may want
to use QMAKE_OBJECTIVE_CFLAGS. I don't see an equivalent flag for ObjC++.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140116/d09ac882/attachment.sig>
More information about the Interest
mailing list