GNU bug report logs -
#9960
Compiling Emacs trunk with MSVC
Previous Next
Reported by: Eli Zaretskii <eliz <at> gnu.org>
Date: Sat, 5 Nov 2011 11:24:02 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #152 received at 9960 <at> debbugs.gnu.org (full text, mbox):
> Date: Sat, 12 Nov 2011 10:10:34 -0700
> From: Christoph Scholtes <cschol2112 <at> googlemail.com>
> CC: Eli Zaretskii <eliz <at> gnu.org>, 9960 <at> debbugs.gnu.org
>
> On a clean checkout or after make maintainer-clean `getopt.h' needs to
> be regenerated. In order for this to work with nmake I needed to make
> the following change:
>
> === modified file 'lib/makefile.w32-in'
> --- lib/makefile.w32-in 2011-11-05 11:34:56 +0000
> +++ lib/makefile.w32-in 2011-11-06 13:34:03 +0000
> @@ -212,7 +212,7 @@
>
> HAVE_GETOPT_H = HAVE_GETOPT_H
> INCLUDE_NEXT = include_next
> -PRAGMA_SYSTEM_HEADER = \#pragma GCC system_header
> +PRAGMA_SYSTEM_HEADER = ^#pragma GCC system_header
> PRAGMA_COLUMNS =
> NEXT_GETOPT_H = <getopt.h>
> ARG_NONNULL_H = ../build-aux/snippet/arg-nonnull.h
>
> This is not meant as a permanent fix, but just an example of what is
> necessary to make it work with nmake.
>
> See:
> http://msdn.microsoft.com/en-us/library/f8txf85h%28v=vs.80%29.aspx
>
> Should we define an ESCAPE_SPECIAL_CHAR variable in
> nmake.defs/gmake.defs to handle this or is there a way to make the
> platform specific decision in the makefile.w32-in without too much
> duplication?
This pragma is only needed when Emacs is compiled with MinGW, because
this pragma is specific to GCC. So a better solution would be to
define PRAGMA_SYSTEM_HEADER itself on gmake.defs, and define it as
empty on nmake.defs (to edit away "@PRAGMA_SYSTEM_HEADER@").
This bug report was last modified 13 years and 62 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.