* A little build error with MSVC and possible fix
@ 2013-03-23 15:01 cg
2013-03-23 15:38 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: cg @ 2013-03-23 15:01 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 422 bytes --]
I am building emacs from trunk (r112112) with MSVC 2012, and get a
trivial build error in lib-src.
The problem is in lib-src\makefile, the variable LIB_SRC is used before
defined, after moving it up (see the attached diff), everything goes well.
Has anyone seen the same issue?
Another question, how can I use gmake + MSVC to build emacs?
Building with nmake is really slow, because it can't do parallel build.
--
cg
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: msvc.diff --]
[-- Type: text/plain; charset=gb18030; name="msvc.diff", Size: 480 bytes --]
=== modified file 'lib-src/makefile.w32-in'
--- lib-src/makefile.w32-in 2013-01-02 16:13:04 +0000
+++ lib-src/makefile.w32-in 2013-03-23 11:25:12 +0000
@@ -23,6 +23,7 @@
.PHONY: make-docfile
+LIB_SRC = .
LOCAL_FLAGS = -DNO_LDAV=1 -DNO_ARCHIVES=1 -I../lib \
-I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS)
@@ -360,7 +361,6 @@
### DEPENDENCIES ###
EMACS_ROOT = ..
-LIB_SRC = .
SRC = $(EMACS_ROOT)/src
NT_INC = $(EMACS_ROOT)/nt/inc
GNU_LIB = $(EMACS_ROOT)/lib
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: A little build error with MSVC and possible fix
2013-03-23 15:01 A little build error with MSVC and possible fix cg
@ 2013-03-23 15:38 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2013-03-23 15:38 UTC (permalink / raw)
To: chengang31; +Cc: emacs-devel
> From: cg <chengang31@gmail.com>
> Date: Sat, 23 Mar 2013 23:01:48 +0800
>
> The problem is in lib-src\makefile, the variable LIB_SRC is used before
> defined, after moving it up (see the attached diff), everything goes well.
Fixed.
> Has anyone seen the same issue?
2 people are using MSVC, but none of them reported this. Strange.
> Another question, how can I use gmake + MSVC to build emacs?
Not easily: currently nt/gmake.defs assumes GCC.
Maybe try using jom (http://qt-project.org/wiki/jom) instead of nmake.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-23 15:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-23 15:01 A little build error with MSVC and possible fix cg
2013-03-23 15:38 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).