-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add win32-aarch64 support #1264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ffb7e0e
Bump libffi to v3.3
tresf 2732f2c
aarch64: Fix closures for win64
AndreRH b56aaa7
Fix line-ends for libtool-ldflags
tresf 205699d
Make 5c889be work for win32-aarch64 too
tresf 49f168e
Add win32-aarch64 to build
tresf 157573d
Add AppVeyor for x86, arm64
tresf 2a6eef0
Fix testStdCallCallbackStackAlignment on win32-x86
tresf 88a7a61
Update changelog
tresf 95ee1a3
Update documentation
tresf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,72 @@ | ||
| version: 1.0.{build} | ||
| image: Visual Studio 2015 | ||
|
|
||
| # speed up cloning | ||
| shallow_clone: true | ||
| clone_depth: 10 | ||
|
|
||
| environment: | ||
| matrix: | ||
| - TARGET_ARCH: x86_64 | ||
| APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| CYGWIN_PACKAGES: git,make,automake,libtool,mingw64-x86_64-gcc-g++,mingw64-x86_64-gcc-core | ||
| CHOCO_PACKAGES: ant cygwin | ||
| CYGWIN_SETUP: cygwinsetup.exe # from choco | ||
| JAVA_HOME: C:\Program Files\Java\jdk1.8.0 | ||
|
|
||
| - TARGET_ARCH: x86 | ||
| APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
| CYGWIN_PACKAGES: git,make,automake,libtool,mingw64-i686-gcc-g++,mingw64-i686-gcc-core | ||
| CHOCO_PACKAGES: ant cygwin | ||
| CYGWIN_SETUP: cygwinsetup.exe # from choco | ||
| JAVA_HOME: C:\Program Files (x86)\Java\jdk1.8.0 # 32-bit | ||
|
|
||
| - TARGET_ARCH: aarch64 | ||
| APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 # provides cygwin, mingw | ||
| CYGWIN_PACKAGES: make,automake,libtool | ||
| CHOCO_PACKAGES: ant | ||
| CYGWIN_SETUP: setup-x86_64.exe # from appveyor | ||
| JAVA_HOME: C:\Program Files\Java\jdk1.8.0 | ||
|
|
||
| install: | ||
| - cmd: set PATH=%PATH%;c:\cygwin64;c:\cygwin64\bin | ||
| - cmd: choco install -y -f -i ant | ||
| - cmd: choco install -y -f -i cygwin | ||
| - cmd: C:\cygwin64\cygwinsetup.exe --root C:\cygwin64 --local-package-dir C:\cygwin64\packages --quiet-mode --no-desktop --no-startmenu --packages git,make,automake,automake1.15,libtool,mingw64-x86_64-gcc-g++,mingw64-x86_64-gcc-core,gcc-g++ | ||
| - cmd: set JAVA_HOME=C:\Program Files\Java\jdk1.8.0 | ||
| - cmd: set PATH=%JAVA_HOME%\bin;%PATH% | ||
| - cmd: set PATH=c:\cygwin64;c:\cygwin64\bin;%PATH% | ||
| - cmd: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64' | ||
| # Must prepend cygwin PATH to avoid "cygheap base mismatch" from Git\usr\bin\sed | ||
| - cmd: set PATH=C:\cygwin64;C:\cygwin64\bin;%JAVA_HOME%\bin;%PATH%; | ||
| - cmd: choco install -y -f -i %CHOCO_PACKAGES% | ||
| - cmd: '%CYGWIN_SETUP% --root C:\cygwin64 --local-package-dir C:\cygwin64\packages --quiet-mode --no-desktop --no-startmenu --packages %CYGWIN_PACKAGES%' | ||
|
|
||
| build_script: | ||
| - cmd: ant dist | ||
| # Setup msvc environment | ||
| for: | ||
| - # VS 2015: x64 | ||
| matrix: | ||
| only: | ||
| - TARGET_ARCH: x86_64 | ||
| before_build: | ||
| - cmd: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64' | ||
| before_test: | ||
| - cmd: net start spooler | ||
| test_script: | ||
| - cmd: ant test | ||
| - cmd: ant test-platform | ||
|
|
||
| - # VS 2015: x86 | ||
| matrix: | ||
| only: | ||
| - TARGET_ARCH: x86 | ||
| before_build: | ||
| - cmd: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86' | ||
| before_test: | ||
| - cmd: net start spooler | ||
| test_script: | ||
| - cmd: ant test | ||
| - cmd: ant test-platform | ||
|
|
||
| test_script: | ||
| - cmd: net start spooler | ||
| - cmd: ant test | ||
| - cmd: ant test-platform | ||
| - # VS 2019: aarch64 | ||
| matrix: | ||
| only: | ||
| - TARGET_ARCH: aarch64 | ||
| before_build: | ||
| - cmd: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64_arm64' | ||
| test_script: | ||
| - cmd: echo Skipping tests | ||
|
|
||
| build_script: | ||
| - cmd: ant -Dos.prefix=win32-%TARGET_ARCH% dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| shallow_clone: true | ||
|
|
||
| # We're currently only testing libffi built with Microsoft's | ||
| # tools. | ||
| # This matrix should be expanded to include at least: | ||
| # 32- and 64-bit gcc/cygwin | ||
| # 32- and 64-bit gcc/mingw | ||
| # 32- and 64-bit clang/mingw | ||
| # and perhaps more. | ||
|
|
||
| image: Visual Studio 2017 | ||
| platform: | ||
| - x64 | ||
| - x86 | ||
| - arm | ||
| - arm64 | ||
|
|
||
| environment: | ||
| global: | ||
| CYG_ROOT: C:/cygwin | ||
| CYG_CACHE: C:/cygwin/var/cache/setup | ||
| CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/ | ||
| matrix: | ||
| - VSVER: 15 | ||
|
|
||
| install: | ||
| - ps: >- | ||
| If ($env:Platform -Match "x86") { | ||
| $env:VCVARS_PLATFORM="x86" | ||
| $env:BUILD="i686-pc-cygwin" | ||
| $env:HOST="i686-pc-cygwin" | ||
| $env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh" | ||
| $env:SRC_ARCHITECTURE="x86" | ||
| } ElseIf ($env:Platform -Match "arm64") { | ||
| $env:VCVARS_PLATFORM="x86_arm64" | ||
| $env:BUILD="i686-pc-cygwin" | ||
| $env:HOST="aarch64-w64-cygwin" | ||
| $env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh -marm64" | ||
| $env:SRC_ARCHITECTURE="aarch64" | ||
| } ElseIf ($env:Platform -Match "arm") { | ||
| $env:VCVARS_PLATFORM="x86_arm" | ||
| $env:BUILD="i686-pc-cygwin" | ||
| $env:HOST="arm-w32-cygwin" | ||
| $env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh -marm" | ||
| $env:SRC_ARCHITECTURE="arm" | ||
| } Else { | ||
| $env:VCVARS_PLATFORM="amd64" | ||
| $env:BUILD="x86_64-w64-cygwin" | ||
| $env:HOST="x86_64-w64-cygwin" | ||
| $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' | ||
| - '%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" | ||
| - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS")) | ||
| - echo "Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%" | ||
| - 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`)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| * text=auto | ||
|
|
||
| *.sln text eol=crlf | ||
| *.vcxproj* text eol=crlf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| ## System Details | ||
|
|
||
| <!--- What platform are you working with? eg. the output of config.guess --> | ||
| <!--- Provide any toolchain details here. eg. compiler version --> | ||
|
|
||
| ## Problems Description | ||
|
|
||
| <!--- Provide a description of the problem here --> | ||
| <!--- If this is a configure-time problem, attach config.log --> | ||
| <!--- If this is a testsuite problem, attach the relevant log output --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.