Hi All,

When compiling with clang x64 15.0.4 (from msys2) on Win8.1 x64, I get this error from windres:
</snip>
windres  -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -DMS_WIN64 -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD \
    --input-format=rc --output-format=coff -i vim.rc -o gobjx86-64/vimres.o
windres: preprocessing failed.
make: *** [Make_cyg_ming.mak:1222: gobjx86-64/vimres.o] Error 1
</snip>

The attached patch is probably not the best fix but it corrects it for me.

Cheers
John

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/e6116376-98c8-b211-192f-2a416399a499%40internode.on.net.
--- Make_cyg_ming.mak.orig      2022-10-15 06:24:24.000000000 +1100
+++ Make_cyg_ming.mak   2022-11-12 06:48:03.371617100 +1100
@@ -227,7 +227,11 @@
 ifeq ($(UNDER_CYGWIN),yes)
 WINDRES := $(CROSS_COMPILE)windres
 else
+ifeq ($(findstring clang,$(CC)),)
 WINDRES := windres
+else
+WINDRES := llvm-windres
+endif
 endif
 
 # Get the default ARCH.

Raspunde prin e-mail lui