diff options
author | fwg <fwg@users.noreply.github.com> | 2018-04-02 13:55:31 +0200 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2018-04-02 06:55:31 -0500 |
commit | af6773d6ab4db0577bc6b932ab5a2f98a0a8dca2 (patch) | |
tree | 812b6d0727d5104317df93387c2ac341aaf60b9e /testsuite/libffi.call/call.exp | |
parent | 48bdb02867edb7e9f3785ccb4bdff1087fb44246 (diff) | |
download | libffi-af6773d6ab4db0577bc6b932ab5a2f98a0a8dca2.tar.gz |
Fix appveyor windows build (#420)
* Fix msvcc dll build by adding dllexport decorations to all API declarations
* Fix appveyor build for VS 2013
Use the new -DFFI_BUILDING_DLL for producing a working DLL. Update the
msvcc.sh wrapper script to successfully compile the testsuite files.
* MSVC build: suppress warnings in testsuite
* fix testsuite on appveyor
Diffstat (limited to 'testsuite/libffi.call/call.exp')
-rw-r--r-- | testsuite/libffi.call/call.exp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/testsuite/libffi.call/call.exp b/testsuite/libffi.call/call.exp index bc2bdc3..ab47415 100644 --- a/testsuite/libffi.call/call.exp +++ b/testsuite/libffi.call/call.exp @@ -19,9 +19,22 @@ libffi-init global srcdir subdir +if { [string match $compiler_vendor "microsoft"] } { + # -wd4005 macro redefinition + # -wd4244 implicit conversion to type of smaller size + # -wd4305 truncation to smaller type + # -wd4477 printf %lu of uintptr_t + # -wd4312 implicit conversion to type of greater size + # -wd4311 pointer truncation to unsigned long + # -EHsc C++ Exception Handling (no SEH exceptions) + set additional_options "-wd4005 -wd4244 -wd4305 -wd4477 -wd4312 -wd4311 -EHsc"; +} else { + set additional_options ""; +} + set tlist [lsort [glob -nocomplain -- $srcdir/$subdir/*.{c,cc}]] -run-many-tests $tlist "" +run-many-tests $tlist $additional_options dg-finish |