Enabling LLVM-GCC builds

13 views
Skip to first unread message

Jon

unread,
Aug 7, 2010, 1:53:20 PM8/7/10
to vim_dev
Once PATH is configured, the patch http://gist.github.com/513020
allows me to build vim on Windows 7 Ultimate 32-bit as simply as the
following

mingw32-make -f Make_ming.mak gvim.exe CC=llvm-gcc

Please consider committing to https://vim.googlecode.com/hg/

Jon

Jon

unread,
Aug 22, 2010, 5:19:46 PM8/22/10
to vim_dev
Now that you've gotten past the 7.3 release (thanks BTW) what
specifically do you need from me in order to review the following 2-
line-change patch enabling one to build on Windows like:

== MSYS + MinGW/TDM 4.5.0 ==
make -f Make_mingw.mak gvim.exe

== LLVM-GCC 2.7 ==
mingw32-make -f Make_mingw.make all CC=llvm-gcc CXX=llvm-g++


diff --git a/src/GvimExt/Make_ming.mak b/src/GvimExt/Make_ming.mak
--- a/src/GvimExt/Make_ming.mak
+++ b/src/GvimExt/Make_ming.mak
@@ -33,7 +33,7 @@
endif
endif
CXX := $(CROSS_COMPILE)g++
-WINDRES := $(CROSS_COMPILE)windres
+WINDRES := $(CROSS_COMPILE)windres --preprocessor="$(CXX) -E -xc" -
DRC_INVOKED
LIBS := -luuid
RES := gvimext.res
DEFFILE = gvimext_ming.def
diff --git a/src/Make_ming.mak b/src/Make_ming.mak
--- a/src/Make_ming.mak
+++ b/src/Make_ming.mak
@@ -303,7 +303,7 @@
endif
endif
CC := $(CROSS_COMPILE)gcc
-WINDRES := $(CROSS_COMPILE)windres
+WINDRES := $(CROSS_COMPILE)windres --preprocessor="$(CC) -E -xc" -
DRC_INVOKED

#>>>>> end of choices

###########################################################################
Reply all
Reply to author
Forward
0 new messages