This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] building libffi on mswin64 with msvcc.sh


Hello, libffi-discuss.

I tried to build libffi on mswin64.
To do it, I had to rewrite part of msvcc.sh to avoid some warnings.
The patch is below.

And in configure phase, it needed --build=x86_64-pc-mingw32 and
CC="path/to/msvcc.sh -m64".
If README notes it, it get more easily comprehensible, I guess.

Your attention to this would be greatly appreciated.
Sincerely.


diff --git a/msvcc.sh b/msvcc.sh
index 8301839..f6ae503 100755
--- a/msvcc.sh
+++ b/msvcc.sh
@@ -44,7 +44,7 @@

 # Disable specific warnings, and enable warnings-as-errors so we catch any
 # mistranslated args.
-nowarn="-wd4127 -wd4820 -wd4706 -wd4100 -wd4255 -wd4668 -wd4053 -wd4324"
+nowarn="-wd4127 -wd4820 -wd4706 -wd4100 -wd4255 -wd4668 -wd4053
-wd4324 -wd4267 -wd4305 -wd4054"
 args="-nologo -W3 -WX $nowarn"
 md=-MD
 cl="cl"

-- 
wanabe


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]