Author: rfm
Date: Fri Mar 25 15:48:54 2016
New Revision: 39610
URL: http://svn.gna.org/viewcvs/gnustep?rev=39610&view=rev
Log:
example of turning on arc for individual files
Modified:
tools/make/trunk/Documentation/gnustep-make.texi
Modified: tools/make/trunk/Documentation/gnustep-make.texi
URL:
http://svn.gna.org/viewcvs/gnustep/tools/make/trunk/Documentation/gnustep-make.texi?rev=39610&r1=39609&r2=39610&view=diff
==============================================================================
--- tools/make/trunk/Documentation/gnustep-make.texi (original)
+++ tools/make/trunk/Documentation/gnustep-make.texi Fri Mar 25 15:48:54 2016
@@ -1574,6 +1574,15 @@
and the library-combo needs to be ng-gnu-gnu for it to take effect (in
which case it causes the -fobjc-arc flag to be used when compiling any
Objective-C source files).
+Alternatively, to switch on ARC for individual files, you can have a makefile
+fragment like this:
+@smallexample
+ifeq ($(OBJC_RUNTIME_LIB), ng)
+file1.m_FILE_FLAGS+=-fobjc-arc
+file2.m_FILE_FLAGS+=-fobjc-arc
+file9.m_FILE_FLAGS+=-fobjc-arc
+endif
+@end smallexample
@defvar xxx_FILE_FILTER_OUT_FLAGS
@code{xxx_FILE_FILTER_OUT_FLAGS} (where xxx is the file name, such as mframe.m)
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs