GNU bug report logs -
#8715
23.3.50; Use GNU, not Windows syntax in example code in flymake manual
Previous Next
Reported by: Reuben Thomas <rrt <at> sc3d.org>
Date: Sat, 21 May 2011 22:22:01 UTC
Severity: minor
Found in version 23.3.50
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Reuben Thomas <rrt <at> sc3d.org> writes:
> The flymake manual contains the following handy sample make rule:
>
> check-syntax:
> gcc -o nul -S ${CHK_SOURCES}
>
> But using “nul” is useful on Windows (it works on GNU too, but creates
> an output file, and the point of the rule is to avoid doing that).
> Hence, use the GNU syntax:
>
> check-syntax:
> gcc -o /dev/null -S ${CHK_SOURCES}
I've now done this change in Emacs 24.
> A further suggestion is to suggest the following rule for automake users:
>
> check-syntax:
> $(COMPILE) -o /dev/null -S $(CHK_SOURCES)
>
> As this adds compiler flags which may be needed, for example to find
> include files. A further reason this is handy is that the undocumented
> make target dumpvars which is used by
> flymake-get-project-include-dirs-imp cannot easily be implemented in
> automake (at least, my attempt ended in tears, since it required the use
> of a GNU make construct, which is not permitted in automake). The above
> check-syntax target makes this unnecessary.
I know next to nothing about flymake, so I'm afraid I'm not a good judge
of this change, though. Anybody?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
This bug report was last modified 13 years and 78 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.