Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
239 commits
Select commit Hold shift + click to select a range
1d60594
Add missing dist files.
atgreen Oct 24, 2019
90fb897
Strip build status from README.md at 'make dist' time.
atgreen Oct 24, 2019
ec04288
Don't test ppc64le with buggy qemu.
atgreen Oct 24, 2019
9b10df3
Remove some debugging output
atgreen Oct 24, 2019
52b066f
Update versions to 3.3-rc1
atgreen Oct 24, 2019
ca11253
Add missing build script, make_sunver.pl.
atgreen Oct 26, 2019
a8efc2f
Fix FFI_STDCALL ABI (#514)
andreas-schwab Oct 26, 2019
290bc31
Add make_sunver.pl to distribution.
atgreen Oct 26, 2019
0348d0e
Try new cfarm build for power
atgreen Oct 31, 2019
82719cb
Test sparc64-linux-gnu on travis
atgreen Oct 31, 2019
39bad2f
Don't run autogen.sh all the time.
atgreen Oct 31, 2019
f325324
Test mips64el-linux-gnu
atgreen Oct 31, 2019
a26323b
Don't build sparc. Build mips.
atgreen Oct 31, 2019
45ba4ae
Add sparc64-linux-gnu testing back
atgreen Oct 31, 2019
88a7647
rc2. hack as per: https://github.com/travis-ci/travis-ci/issues/6934
atgreen Nov 3, 2019
c95cc4b
Reference FFI_BUILDING_DLL
atgreen Nov 6, 2019
36d281a
Test cross-builds for hppa-linux-gnu
atgreen Nov 6, 2019
0fb9ee2
Use older test compiler. Enable s390x testing.
atgreen Nov 6, 2019
d4a28fe
Revert to older test cross compilers
atgreen Nov 6, 2019
92f5309
Try s390x and sh4 cross builds/tests
atgreen Nov 6, 2019
136a235
Use the right cross build container image
atgreen Nov 6, 2019
a6dc8ef
Fix typo. Don't double test.
atgreen Nov 6, 2019
d23d395
autogen before cross building
atgreen Nov 6, 2019
259c497
Sett CC and CXX for cross builds
atgreen Nov 6, 2019
75464ca
Add alpha and m68k testing
atgreen Nov 7, 2019
28d9c01
Set QEMU_CPU for m68k
atgreen Nov 7, 2019
04d14a6
Set QEMU_CPU within the build containers
atgreen Nov 7, 2019
588e874
Print debug output. Use podman when available.
atgreen Nov 7, 2019
16c9350
Fix shell script
atgreen Nov 7, 2019
08cb33f
Dump supported CPUs
atgreen Nov 7, 2019
eebcbb1
Compile m68k target for m5208
atgreen Nov 7, 2019
6a9fa77
Add GCC_OPTIONS flag
atgreen Nov 7, 2019
7e0fbf4
Try coldfire for m68k builds
atgreen Nov 7, 2019
0da221f
Clean up. Debug s390x cpu support.
atgreen Nov 7, 2019
188de63
Mark xfail for m68k and alpha.
atgreen Nov 7, 2019
f764f27
Change s390x options
atgreen Nov 7, 2019
4e3e058
Fix tpyo
atgreen Nov 7, 2019
0de0c6a
Build both iOS and Macosx
atgreen Nov 10, 2019
2cc1172
Debug in-container builds
atgreen Nov 11, 2019
3c2b810
Test rlgl
atgreen Nov 12, 2019
2a8d88d
Fix rlgl usage
atgreen Nov 12, 2019
5b297e0
Don't bother dumping logs. Use rlgl instead.
atgreen Nov 12, 2019
82f7f80
Run rlgl outside of the build container.
atgreen Nov 12, 2019
042c667
Always exit build container successfully. Don't test mingw.
atgreen Nov 12, 2019
486f88f
Use rlgl for cross builds.
atgreen Nov 12, 2019
5123e9c
Use rlgl for cfarm test results
atgreen Nov 12, 2019
7e318cf
Pull test logs from cfarm
atgreen Nov 12, 2019
6dd88bc
Debug
atgreen Nov 12, 2019
aa975ec
Fix grep matcher
atgreen Nov 13, 2019
6630764
Account for shorter ==LOGFILE== string
atgreen Nov 13, 2019
c8986e8
Fix log name extraction
atgreen Nov 13, 2019
de6df6d
Fix log file URL extraction. Grab rlgl cli for OSX
atgreen Nov 13, 2019
9bd3a97
Add wine-sim.exp for wine-based testing
atgreen Nov 13, 2019
a34254b
Re-add wine based testing
atgreen Nov 13, 2019
cda60c1
Disable mips64 tests. Fix log grabbing.
atgreen Nov 13, 2019
3a7580d
Mark java raw APIs as deprecated.
atgreen Nov 13, 2019
54af025
Platform test tweaks
atgreen Nov 13, 2019
db198a1
Extend timeout for builds.
atgreen Nov 13, 2019
86d3d37
Don't build aarch64-linux-gnu
atgreen Nov 13, 2019
28a7cc4
Consolidate all of the old ChangeLog files into ChangeLog.old.
atgreen Nov 15, 2019
09dc0a7
Stretch out timeout for test
atgreen Nov 15, 2019
6f221e8
Disable wine builds.
atgreen Nov 15, 2019
b58bd77
Re-enable mingw32 tests.
atgreen Nov 15, 2019
73dd43a
IEEE754 binary128 long double support for PowerPC64 (#526)
smaeul Nov 17, 2019
b6804d1
Mention binary128 long double support for Power
atgreen Nov 17, 2019
d087b59
Build/test for m32r-elf and bfin-elf
atgreen Nov 18, 2019
93c203b
Merge branch 'master' of github.com:libffi/libffi
atgreen Nov 18, 2019
c88f4d2
Fix typo for m32r and bfin builds
atgreen Nov 18, 2019
97e3b1f
Add test support for or1k. Fix yaml typo.
atgreen Nov 18, 2019
bbea639
Capture more or1k hosts
atgreen Nov 18, 2019
581048f
Be specific when building CI container images
atgreen Nov 18, 2019
8c9cf44
Set path to simulator. Add debugging output.
atgreen Nov 18, 2019
a822327
More cross build debugging
atgreen Nov 18, 2019
dfa60e5
Fix cross builds for or1k
atgreen Nov 18, 2019
14bfbec
Pull before running
atgreen Nov 18, 2019
9a394c2
Remove verbosity
atgreen Nov 18, 2019
da13588
Set vars
atgreen Nov 18, 2019
27d3113
Fix DEJAGNU variable
atgreen Nov 18, 2019
6f734f8
Adapt for new old ChangeLog file
atgreen Nov 18, 2019
54fc80d
Fake TRAVIS_BUILD_DIR
atgreen Nov 18, 2019
262cf74
No c++ for or1k-elf
atgreen Nov 19, 2019
4970186
Disable type warnings for or1k.
atgreen Nov 19, 2019
d6e4f96
No C++ for or1k
atgreen Nov 19, 2019
bd3a468
No C++ for or1k-unknown-elf
atgreen Nov 19, 2019
31543c7
Add work-around for users who manage their own closure memory
atgreen Nov 20, 2019
91a7fbe
Fix or1k lack-of-g++ checking in testsuite
atgreen Nov 20, 2019
34a3a66
Fix formatting of README.
atgreen Nov 21, 2019
970b7fc
Update autoconf-archive m4 macros
atgreen Nov 21, 2019
d01088a
Mention more major port contributors
atgreen Nov 21, 2019
8e3935f
Manual clean-ups, and include the PDF in the source distribution.
atgreen Nov 22, 2019
247a5e7
Capture x86-windows host like x86_64-windows (#529)
haubi Nov 22, 2019
1761a10
Remove gccbug detection. GCC is good now.
atgreen Nov 22, 2019
332a539
Move closure tests so we can easily XFAIL them for some targets
atgreen Nov 22, 2019
a37cc17
Merge branch 'master' of github.com:libffi/libffi
atgreen Nov 22, 2019
c88c0e9
More more closure tests to the closure test directory
atgreen Nov 23, 2019
36730f5
Move closure test to closure directory
atgreen Nov 23, 2019
049da08
Add dejagnu directives accidentally removed
atgreen Nov 23, 2019
642d40e
Account for moved test files
atgreen Nov 23, 2019
c72b82f
Remove junk file from dist
atgreen Nov 23, 2019
d996cb2
Version 3.3
atgreen Nov 23, 2019
1aca333
Add missing closing brace
atgreen Nov 23, 2019
5dcb741
Move nested_struct3 test to closures directory
atgreen Nov 23, 2019
fd99c95
Minor clean-up
atgreen Nov 24, 2019
fb914c3
disable obsolete 32-bit targets in macOS (#511)
teras Nov 24, 2019
86be66c
Try travis-ci's new ppc64le and s390x support
atgreen Nov 24, 2019
803db14
Merge branch 'master' of github.com:libffi/libffi
atgreen Nov 24, 2019
932e5bb
Force the use of docker
atgreen Nov 24, 2019
66022e5
Fixes for ppc64le and s390x travis testing
atgreen Nov 24, 2019
1ec01ea
Run aarch64-linux-gnu tests on travi-ci directly
atgreen Nov 25, 2019
01a75ed
powerpc: fix build failure on power7 and older (#532)
Nov 28, 2019
2929744
Test on powerpc-eabisim
atgreen Nov 28, 2019
43887a9
Add powerpc-eabi
atgreen Nov 28, 2019
0069526
Make build errors easier to debug
atgreen Nov 28, 2019
6663047
Address platforms with no __int128.
atgreen Nov 29, 2019
98da256
Clean up macosx builds
atgreen Nov 29, 2019
76c0cfe
Fixed missed #ifndef for __mips_soft_float (#442)
Knight-Ops Nov 29, 2019
f9da75e
Remove 32-bit x86 file references to fix macosx builds
atgreen Nov 30, 2019
e50b9ef
powerpc64: Use memcpy to help platforms with no __int128. (#534)
kraj Dec 7, 2019
1e08a45
Use rlgl API key on login
atgreen Jan 6, 2020
81b5491
Fix script
atgreen Jan 6, 2020
b844a9c
Update copyright year.
atgreen Jan 10, 2020
4d6d286
Update powerpc sysv assembly for ffi_powerpc.h changes (#541)
smaeul Feb 22, 2020
7855656
x86: Add indirect branch tracking support (#540)
hjl-tools Feb 22, 2020
4c775d7
Update for pending 3.4 release.
Feb 22, 2020
624c7a3
Merge branch 'master' of github.com:/libffi/libffi
Feb 22, 2020
d9abffe
x86: Fix ffi_prep_closure_loc (#542)
hjl-tools Feb 22, 2020
be81554
Update the ABI version to LIBFFI_BASE_8.0 (#544)
hjl-tools Feb 23, 2020
8eb2d2b
Revamp PA_LINUX and PA_HPUX target closures to use function descriptors.
Feb 24, 2020
211e929
Try to fix RLGL_KEY nonsense (#547)
atgreen Mar 9, 2020
4c7bde3
Port to iOS/arm64e (#548)
oleavr Mar 10, 2020
909b37f
Test on aarch64 Linux with clang
Mar 10, 2020
4a6414f
Mention ARM Pointer Authentication
Mar 10, 2020
8c50837
Improve read-write .eh_frame check (#546)
MaskRay Mar 10, 2020
c06468f
Fix building for aarch64 windows with mingw toolchains (#555)
mstorsjo Apr 26, 2020
15d3ea3
Use __builtin_ffs instead of ffs (#554)
mstorsjo Apr 26, 2020
c543849
win64_armasm: Fix the spelling of ALIGN (#553)
mstorsjo Apr 26, 2020
053b04c
arm: Fix the clang specific version of the assembly (#556)
mstorsjo Apr 26, 2020
4f9e20a
ffi_powerpc.h: fix build failure with powerpc7 (#561)
geissonator May 1, 2020
5e6ca05
Add support for Kalray KVX architecture (#559)
fallen May 1, 2020
2e90bb5
Add gcc bug tests back
atgreen Jun 7, 2020
5c45c40
Fix Free software foundation address (#564)
kenhys Jun 11, 2020
b7af8f4
Fixes macOS build on Python 3 (#563)
AndreMiras Jun 11, 2020
0027b07
Makefile: increase compatibility with bmake (#551)
konimex Jun 11, 2020
fbd1de8
Add support for csky
Jun 29, 2020
8e58f88
aarch64: Fix typo
jwilk Jun 30, 2020
45875da
Merge pull request #570 from jwilk-forks/spelling
tromey Jul 1, 2020
1a4b786
update config.{guess,sub}
froydnj Aug 4, 2020
4661ba7
Merge pull request #576 from froydnj/config-updates
tromey Aug 4, 2020
e08eb1c
Add support for eabisim back. This was removed upstream.
atgreen Aug 5, 2020
392afba
Don't test s390. Travis-ci is broken.
atgreen Aug 6, 2020
8276f81
Upstream local FreeBSD patches (#567)
zeising Aug 7, 2020
ead65ca
Re-enable s390x testing
atgreen Aug 19, 2020
407394c
docs: fix simple typo, paramters -> parameters (#589)
timgates42 Oct 11, 2020
f443598
Power10 libffi fixes (#585)
amodra Oct 27, 2020
2d86809
Fix read-only .eh_frame section test when CFLAGS contains -flto. (#590)
jacobly0 Oct 27, 2020
c78fcf8
Removing unnecessary instruction from ffi_call_unix64 (#588)
petersn Oct 27, 2020
93cf288
testsuite: Add a missing include of <inttypes.h> to fix build failure…
jeremyhu Oct 27, 2020
032b3cd
Support building x86 and arm64 without FFI_GO_CLOSURES (#586)
jeremyhu Oct 27, 2020
484c1a0
darwin powerpc: use go closures only if enabled (#583)
kencu Oct 27, 2020
8111cd0
Add support for powerpc64le-*-freebsd*. (#581)
bdragon28 Oct 27, 2020
56f7df7
aarch64: Allow FFI_WIN64 for winelib (#593)
AndreRH Nov 10, 2020
d817d0d
Don't use FFI_TYPE_LONGDOUBLE in the jump table in win64*.S (#580)
glandium Nov 10, 2020
8cc8f44
Allow to build with mingw-clang (#579)
glandium Nov 10, 2020
e70bf98
Properly quote and resolve msvcc.sh params (#596)
tresf Nov 25, 2020
cb84743
libffi/x86: Always check __x86_64__ for x32 hosts (#601) (#602)
hjl-tools Dec 2, 2020
5c63b46
Use memfd_create() (#604)
djdelorie Dec 2, 2020
9ba5592
Static tramp v5 (#624)
madvenka786 Mar 5, 2021
bae695d
Add configuration generator for tvOS and watchOS. (#625)
freakboy3742 Mar 5, 2021
d271dbe
Add some missing #if conditionals from Apple's code drop (#620)
jeremyhu Mar 20, 2021
205cf01
Bug #680. Don't accept floats or small ints as var args. (#628)
atgreen Mar 23, 2021
9d491b5
Mention KVX
atgreen Mar 23, 2021
8f44384
Fix formatting
atgreen Mar 23, 2021
5865450
Update ax_cc_maxopt m4 macro (#617)
insilications Mar 23, 2021
f58e5ee
aarch64: Fix closures for win64 (#606)
AndreRH Mar 23, 2021
70ea259
Search $LIBFFI_TMPDIR also (#605)
djdelorie Mar 23, 2021
aa4dafb
Mention LIBFFI_TMPDIR
atgreen Mar 23, 2021
f88add1
x86: Fix MSVC runtime checks interop (#612)
oleavr Mar 24, 2021
e92c81a
Mention MSVC runtime stack checking improvement
atgreen Mar 24, 2021
1aeb267
x86: Fix thiscall and fastcall stack cleanup behavior (#611)
oleavr Mar 24, 2021
01b56f4
fix windows tests (#595)
ericLemanissier Mar 24, 2021
eafab23
arm64e: Pull in pointer authentication code from Apple's arm64e libff…
jeremyhu Mar 24, 2021
58dfdf6
testsuite: fix compiler vendor detection on dash as /bin/sh (#594)
Mar 24, 2021
78c97c9
Move container images to quay.io.
atgreen Mar 25, 2021
95ef857
Verbose brew update.
atgreen Mar 25, 2021
dd5bd03
Fix building for arm windows with mingw toolchains (#631)
mstorsjo Apr 7, 2021
1f1829b
Bring in the latest version of perl
atgreen Jun 2, 2021
03a78e8
Try updating automake
atgreen Jun 2, 2021
04c157f
Upgrade to vs2019
atgreen Jun 2, 2021
243004c
Update vs version
atgreen Jun 2, 2021
ca2235e
Revert appveyor changes
atgreen Jun 4, 2021
6eb3886
Remove reference to old test case
atgreen Jun 9, 2021
e6eb59c
Add struct test to verify a nested float struct (#640)
Jun 9, 2021
ff059dd
Fix build on OpenBSD/mips64 (#638)
vhankala Jun 10, 2021
f56eb85
Don't stop test on copy failure (#636)
djdelorie Jun 15, 2021
5651bea
2021-06-15 Jakub Jelinek <jakub@redhat.com>
jakubjelinek Jun 15, 2021
84bb569
Remove libtool-ldflags file from .gitignore (#600)
tresf Jun 22, 2021
fa1ef88
Avoid undefined behaviour
atgreen Jun 22, 2021
becae73
Switch from travis-ci.org to travis-ci.com.
atgreen Jun 22, 2021
8d83c7c
Make test methods static (#644)
hoodmane Jun 26, 2021
87429ce
This test includes a closure and must live in the closures test direc…
squidhacks Jun 26, 2021
c0b210c
Remove test case
atgreen Jun 26, 2021
1e5dc8d
Add missing file from make dist. Add missing license info.
atgreen Jun 26, 2021
9cf15b3
Make 3.4 release candidate 1
atgreen Jun 26, 2021
f792adb
configure.ac: allow user to specify READELF (#646)
Jun 26, 2021
11f9713
Update contact info
atgreen Jun 27, 2021
4e07374
Remove caveat about varargs support
atgreen Jun 27, 2021
132699b
configure.ac: add --disable-exec-static-tramp flag (#647)
Jun 27, 2021
91eaadf
Fix signature of function pointer in cls_dbls_struct (#648)
Jun 27, 2021
9fa94c6
Print more information when an assertion fails in test suite (#649)
Jun 27, 2021
cd44289
Add missing FFI_HIDDEN to ffi_tramp_is_present declaration (#651)
jeremyhu Jun 28, 2021
4557f23
3.4.0 release candidate 2
atgreen Jun 28, 2021
f08c5ac
Fix the assertions in cls-24byte (#652)
Jun 28, 2021
ee3ef73
Add tests for single entry structs (#653)
Jun 28, 2021
0a2cc2e
Add missing test cases to distribution
atgreen Jun 28, 2021
1ed0aa7
Fix warnings
atgreen Jun 28, 2021
c1d09bf
Update version to 3.4.0
atgreen Jun 28, 2021
2bdc8e5
Version 3.4.1
atgreen Jun 28, 2021
f9ea416
Update version to 3.4.2
atgreen Jun 29, 2021
d1eef90
Migrate from travis-ci to github actions.
atgreen Jul 16, 2021
b4cf80a
Trigger actions on master branch
atgreen Jul 16, 2021
a541fc6
Update README for next release.
atgreen Jul 16, 2021
eb24472
Use CHECK to assert more things in test suite (#654)
Jul 16, 2021
4ed23be
Fix test check
atgreen Jul 16, 2021
c96b057
Fix test check
atgreen Jul 16, 2021
8bcf594
Fix test case
atgreen Jul 16, 2021
7db1744
Don't check the whole buffer, just what we printed.
atgreen Jul 16, 2021
be0b3b6
Fix CHECK
atgreen Jul 17, 2021
07f826f
Fix trampoline_code_table for x32. (#657)
hvdijk Jul 25, 2021
68485e3
Mention x32 static tramponline fix
atgreen Jul 29, 2021
43e4ad4
Test passing structs by value
atgreen Jul 29, 2021
339acf3
Debug cross-in-containers builds
atgreen Jul 29, 2021
a04f57b
Fix m32r testing
atgreen Jul 29, 2021
7643c6e
Try to fix ARM QEMU tests
atgreen Jul 29, 2021
4ac18f2
Add alpha CPU
atgreen Jul 29, 2021
0359628
No more xfail for alpha
atgreen Jul 29, 2021
86d5ecc
Fix struct arg passing
atgreen Jul 29, 2021
ee1263f
Fix 'type'-o
atgreen Jul 29, 2021
aa97518
Merge branch 'master' of https://github.com/libffi/libffi into libffi…
rigor789 Aug 3, 2021
0250c65
Merge branch 'libffi-master' into chore/update
rigor789 Aug 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 27 additions & 9 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ platform:
- arm
- arm64

configuration:
- Debug
- Release

environment:
global:
CYG_ROOT: C:/cygwin
CYG_CACHE: C:/cygwin/var/cache/setup
CYG_ROOT: C:/cygwin64
CYG_CACHE: C:/cygwin64/var/cache/setup
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
VSVER: 15
matrix:
- VSVER: 15
- SHARED_ARG: "--enable-shared --disable-static"
- SHARED_ARG: "--enable-static --disable-shared"

install:
- ps: >-
Expand Down Expand Up @@ -50,8 +56,13 @@ install:
$env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh -m64"
$env:SRC_ARCHITECTURE="x86"
}
- 'appveyor DownloadFile https://cygwin.com/setup-x86.exe -FileName setup.exe'
- 'setup.exe -qnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P dejagnu >NUL'
If ($env:Configuration -Match "Debug") {
$env:DEBUG_ARG="--enable-debug"
} Else {
$env:DEBUG_ARG="--disable-debug"
}
- 'appveyor DownloadFile https://cygwin.com/setup-x86_64.exe -FileName setup.exe'
- 'setup.exe -qgnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P dejagnu -P autoconf -P automake -P libtool'
- '%CYG_ROOT%/bin/bash -lc "cygcheck -dc cygwin"'
- echo call VsDevCmd to set VS150COMNTOOLS
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
Expand All @@ -60,7 +71,14 @@ install:
- call "%VSCOMNTOOLS%..\..\vc\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%

build_script:
- c:\cygwin\bin\sh -lc "(cd $OLDPWD; ./autogen.sh;)"
- c:\cygwin\bin\sh -lc "(cd $OLDPWD; ./configure CC='%MSVCC%' CXX='%MSVCC%' LD='link' CPP='cl -nologo -EP' CXXCPP='cl -nologo -EP' CPPFLAGS='-DFFI_BUILDING_DLL' AR='/cygdrive/c/projects/libffi/.travis/ar-lib lib' NM='dumpbin -symbols' STRIP=':' --build=$BUILD --host=$HOST;)"
- c:\cygwin\bin\sh -lc "(cd $OLDPWD; cp src/%SRC_ARCHITECTURE%/ffitarget.h include; make; find .;)"
- c:\cygwin\bin\sh -lc "(cd $OLDPWD; cp `find . -name 'libffi-?.dll'` $HOST/testsuite/; make check; cat `find ./ -name libffi.log`)"
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; ./autogen.sh)"
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; ./configure CC='%MSVCC%' CXX='%MSVCC%' LD='link' CPP='cl -nologo -EP' CXXCPP='cl -nologo -EP' CPPFLAGS='-DFFI_BUILDING_DLL' AR='/cygdrive/c/projects/libffi/.travis/ar-lib lib' NM='dumpbin -symbols' STRIP=':' --build=$BUILD --host=$HOST $DEBUG_ARG $SHARED_ARG)"
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; cp src/%SRC_ARCHITECTURE%/ffitarget.h include)"
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; make)"
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; cp $HOST/.libs/libffi.lib $HOST/testsuite/libffi-8.lib || true)"
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; cp `find . -name 'libffi-?.dll'` $HOST/testsuite/ || true)"
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; TERM=none make check RUNTESTFLAGS='-v -v -v -v --target '$HOST DEJAGNU=$PWD/.appveyor/site.exp SITEDIR=$PWD/.appveyor)"


on_finish:
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; cat `find ./ -name libffi.log`)"
16 changes: 16 additions & 0 deletions .appveyor/site.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2021 Anthony Green

lappend boards_dir $::env(SITEDIR)

verbose "Global Config File: target_triplet is $target_triplet" 1
global target_list

case "$target_triplet" in {
{ "aarch*cygwin*" } {
set target_list "unix-noexec"
}
{ "arm*cygwin*" } {
set target_list "unix-noexec"
}
}

7 changes: 7 additions & 0 deletions .appveyor/unix-noexec.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
load_generic_config "remote"

proc noexec_load { dest prog args } {
return "unsupported"
}

set_board_info protocol "noexec"
File renamed without changes.
58 changes: 58 additions & 0 deletions .ci/bfin-sim.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Copyright (C) 2010, 2019 Free Software Foundation, Inc.
#
# This file is part of DejaGnu.
#
# DejaGnu is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# DejaGnu is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DejaGnu; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.

# This is a list of toolchains that are supported on this board.
set_board_info target_install {bfin-elf}

# Load the generic configuration for this board. This will define a basic set
# of routines needed by the tool to communicate with the board.
load_generic_config "sim"

# basic-sim.exp is a basic description for the standard Cygnus simulator.
load_base_board_description "basic-sim"

# "bfin" is the name of the sim subdir in devo/sim.
setup_sim bfin

# No multilib options needed by default.
process_multilib_options ""

# We only support newlib on this target. We assume that all multilib
# options have been specified before we get here.

set_board_info compiler "[find_gcc]"
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"

# Configuration settings for testsuites
set_board_info noargs 1
set_board_info gdb,nosignals 1
set_board_info gdb,noresults 1
set_board_info gdb,cannot_call_functions 1
set_board_info gdb,skip_float_tests 1
set_board_info gdb,can_reverse 1
set_board_info gdb,use_precord 1

# More time is needed
set_board_info gcc,timeout 800
set_board_info gdb,timeout 60

# Used by a few gcc.c-torture testcases to delimit how large the stack can
# be.
set_board_info gcc,stack_size 5000

18 changes: 18 additions & 0 deletions .ci/build-cross-in-container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
set -x

cd /opt

echo $PATH
export PATH=/usr/local/bin:$PATH
echo $PATH

export DEJAGNU=$(pwd)/.ci/site.exp
echo $DEJAGNU
ls -l $DEJAGNU
pwd
find .
./configure --host=${HOST} || cat */config.log
make
make dist
BOARDSDIR=$(pwd)/.ci make check RUNTESTFLAGS="-a $RUNTESTFLAGS" || true
10 changes: 10 additions & 0 deletions .ci/build-in-container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -x

export QEMU_LD_PREFIX=/usr/${HOST}
export DEJAGNU=/opt/.ci/site.exp
cd /opt
./configure ${HOST+--host=$HOST --disable-shared}
make
make dist
BOARDSDIR=/opt/.ci make check RUNTESTFLAGS="-a $RUNTESTFLAGS" || true
143 changes: 143 additions & 0 deletions .ci/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
#!/bin/bash

set -x

# This is a policy bound API key. It can only be used with
# https://github.com/libffi/rlgl-policy.git.
RLGL_KEY=0LIBFFI-0LIBFFI-0LIBFFI-0LIBFFI

if [ -z ${QEMU_CPU+x} ]; then
export SET_QEMU_CPU=
else
export SET_QEMU_CPU="-e QEMU_CPU=${QEMU_CPU}"
fi

export DOCKER=docker

function build_cfarm()
{
curl -u ${CFARM_AUTH} https://cfarm-test-libffi-libffi.apps.home.labdroid.net/test?host=${HOST}\&commit=${TRAVIS_COMMIT} | tee build.log
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo $(tail build.log | grep '^==LOGFILE==')
echo $(tail build.log | grep '^==LOGFILE==' | cut -b13-)
echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
curl -u ${CFARM_AUTH} "$(tail build.log | grep '^==LOGFILE==' | cut -b13-)" > libffi.log

./rlgl l --key=${RLGL_KEY} https://rl.gl
ID=$(./rlgl start)
./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git libffi.log
exit $?
}

function build_linux()
{
./autogen.sh
./configure ${HOST+--host=$HOST} ${CONFIGURE_OPTIONS} || cat */config.log
make
make dist
DEJAGNU=$(pwd)/.ci/site.exp BOARDSDIR=$(pwd)/.ci runtest --version
DEJAGNU=$(pwd)/.ci/site.exp BOARDSDIR=$(pwd)/.ci make check RUNTESTFLAGS="-a $RUNTESTFLAGS"

./rlgl l --key=${RLGL_KEY} https://rl.gl
ID=$(./rlgl start)
./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git */testsuite/libffi.log
exit $?
}

function build_foreign_linux()
{
${DOCKER} run --rm -t -v $(pwd):/opt ${SET_QEMU_CPU} -e LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" $2 bash -c /opt/.ci/build-in-container.sh

./rlgl l --key=${RLGL_KEY} https://rl.gl
ID=$(./rlgl start)
./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git */testsuite/libffi.log
exit $?
}

function build_cross_linux()
{
${DOCKER} run --rm -t -v $(pwd):/opt ${SET_QEMU_CPU} -e HOST="${HOST}" -e CC="${HOST}-gcc-8 ${GCC_OPTIONS}" -e CXX="${HOST}-g++-8 ${GCC_OPTIONS}" -e LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" quay.io/moxielogic/cross-ci-build-container:latest bash -c /opt/.ci/build-in-container.sh

./rlgl l --key=${RLGL_KEY} https://rl.gl
ID=$(./rlgl start)
./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git */testsuite/libffi.log
exit $?
}

function build_cross()
{
${DOCKER} pull quay.io/moxielogic/libffi-ci-${HOST}
${DOCKER} run --rm -t -v $(pwd):/opt -e HOST="${HOST}" -e CC="${HOST}-gcc ${GCC_OPTIONS}" -e CXX="${HOST}-g++ ${GCC_OPTIONS}" -e RUNNER_WORKSPACE=/opt -e RUNTESTFLAGS="-vv ${RUNTESTFLAGS}" -e LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" quay.io/moxielogic/libffi-ci-${HOST} bash -c /opt/.ci/build-cross-in-container.sh

./rlgl l --key=${RLGL_KEY} https://rl.gl
ID=$(./rlgl start)
./rlgl e --id=$ID --policy=https://github.com/libffi/rlgl-policy.git */testsuite/libffi.log
exit $?
}

function build_ios()
{
which python
# export PYTHON_BIN=/usr/local/bin/python
./generate-darwin-source-and-headers.py --only-ios
xcodebuild -showsdks
xcodebuild -project libffi.xcodeproj -target "libffi-iOS" -configuration Release -sdk iphoneos11.4
exit $?
}

function build_macosx()
{
which python
# export PYTHON_BIN=/usr/local/bin/python
./generate-darwin-source-and-headers.py --only-osx
xcodebuild -showsdks
xcodebuild -project libffi.xcodeproj -target "libffi-Mac" -configuration Release -sdk macosx10.13
echo "Finished build"
exit $?
}

case "$HOST" in
arm-apple-darwin*)
./autogen.sh
build_ios
;;
x86_64-apple-darwin*)
./autogen.sh
build_macosx
;;
arm32v7-linux-gnu)
./autogen.sh
build_foreign_linux arm quay.io/moxielogic/arm32v7-ci-build-container:latest
;;
mips64el-linux-gnu | sparc64-linux-gnu)
build_cfarm
;;
bfin-elf )
./autogen.sh
GCC_OPTIONS=-msim build_cross
;;
m32r-elf )
./autogen.sh
build_cross
;;
or1k-elf )
./autogen.sh
build_cross
;;
powerpc-eabisim )
./autogen.sh
build_cross
;;
m68k-linux-gnu )
./autogen.sh
GCC_OPTIONS=-mcpu=547x build_cross_linux
;;
alpha-linux-gnu | sh4-linux-gnu )
./autogen.sh
build_cross_linux
;;
*)
./autogen.sh
build_linux
;;
esac
File renamed without changes.
72 changes: 72 additions & 0 deletions .ci/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#!/bin/bash
set -x

if [[ $RUNNER_OS != 'Linux' ]]; then
brew update --verbose
# brew update > brew-update.log 2>&1
# fix an issue with libtool on travis by reinstalling it
brew uninstall libtool;
brew install libtool dejagnu;

# Download and extract the rlgl client
wget -qO - https://rl.gl/cli/rlgl-darwin-amd64.tgz | \
tar --strip-components=2 -xvzf - ./rlgl/rlgl;

else
# Download and extract the rlgl client
case $HOST in
aarch64-linux-gnu)
wget -qO - https://rl.gl/cli/rlgl-linux-arm.tgz | \
tar --strip-components=2 -xvzf - ./rlgl/rlgl;
;;
ppc64le-linux-gnu)
wget -qO - https://rl.gl/cli/rlgl-linux-ppc64le.tgz | \
tar --strip-components=2 -xvzf - ./rlgl/rlgl;
;;
s390x-linux-gnu)
wget -qO - https://rl.gl/cli/rlgl-linux-s390x.tgz | \
tar --strip-components=2 -xvzf - ./rlgl/rlgl;
;;
*)
wget -qO - https://rl.gl/cli/rlgl-linux-amd64.tgz | \
tar --strip-components=2 -xvzf - ./rlgl/rlgl;
;;
esac

sudo apt-get clean # clear the cache
sudo apt-get update
case $HOST in
mips64el-linux-gnu | sparc64-linux-gnu)
;;
alpha-linux-gnu | arm32v7-linux-gnu | m68k-linux-gnu | sh4-linux-gnu)
sudo apt-get install qemu-user-static
;;
hppa-linux-gnu )
sudo apt-get install -y qemu-user-static g++-5-hppa-linux-gnu
;;
i386-pc-linux-gnu)
sudo apt-get install gcc-multilib g++-multilib;
;;
moxie-elf)
echo 'deb [trusted=yes] https://repos.moxielogic.org:7114/MoxieLogic moxiedev main' | sudo tee -a /etc/apt/sources.list
sudo apt-get clean # clear the cache
sudo apt-get update ## -qq
sudo apt-get update
sudo apt-get install -y --allow-unauthenticated moxielogic-moxie-elf-gcc moxielogic-moxie-elf-gcc-c++ moxielogic-moxie-elf-gcc-libstdc++ moxielogic-moxie-elf-gdb-sim texinfo sharutils texlive dejagnu
;;
x86_64-w64-mingw32)
sudo apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wine;
;;
i686-w32-mingw32)
sudo apt-get install gcc-mingw-w64-i686 g++-mingw-w64-i686 wine;
;;
esac
case $HOST in
arm32v7-linux-gnu)
# don't install host tools
;;
*)
sudo apt-get install dejagnu texinfo sharutils
;;
esac
fi
Loading