libjit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libjit] [PATCH v2 0/3] Fix build on 32-bit Cygwin


From: Aleksey Demakov
Subject: Re: [Libjit] [PATCH v2 0/3] Fix build on 32-bit Cygwin
Date: Sun, 2 Sep 2018 18:22:02 +0300

Applied, thanks.

On Sat, Sep 1, 2018 at 5:38 PM Ken Brown <address@hidden> wrote:
>
> LibJIT currently fails to build on Cygwin because it uses the GCC
> option -mno-cygwin, which has been obsolete for several years.
> Moreover, the code assumes that the purpose of a build on Cygwin is to
> produce native MS-Windows binaries, as evidenced by the following
> snippet from configure.ac:
>
>   dnl Turn off the cygwin library if building for Win32.
>   dnl Note: We have to include <stdlib.h> if we will be using "__int64"
>   dnl because otherwise the mingw32 compiler won't define it correctly.
>   AC_MSG_CHECKING([if building for some Win32 platform])
>   AC_SUBST(JIT_INT64_INCLUDE)
>   case "$host" in
>   *-*-cygwin*)
>   platform_win32=yes
>   if test "x$CC" = "x" ; then
>   CC="gcc -mno-cygwin"
>   fi
>
> If one really wants to build native Windows binaries on Cygwin, the
> way to do this is to cross compile via --host=i686-w64-mingw32 or
> --host=x86_64-w64-mingw32, in which case $host above will not match
> *-*-cygwin*.
>
> The purpose of this patch series is to make LibJIT build on 32-bit
> Cygwin with a view toward using it within Cygwin.  In particular, the
> build should use the Posix API rather than the Win32 API.
>
> I've tested the build by running the test suite (all tests pass) and
> by building Emacs with libjit support.
>
> v2: Replace all uses of JIT_WIN32_NATIVE by JIT_WIN32_PLATFORM.  Add
> ChangeLog entries.
>
>
> Ken Brown (3):
>   Remove obsolete compiler option on Cygwin
>   Don't use Win32 API on Cygwin
>   Remove reference to __CYGWIN32__
>
>  ChangeLog                | 27 +++++++++++++++++++++++++++
>  configure.ac             | 18 +-----------------
>  jit/jit-apply-x86.h      |  4 ++--
>  jit/jit-config.h         |  6 +-----
>  jit/jit-dump.c           | 10 ----------
>  jit/jit-elf-read.c       |  2 +-
>  jit/jit-intrinsic.c      |  8 ++++----
>  jitdynamic/jit-dynlib.c  | 25 +------------------------
>  tools/gen-apply-helper.h |  3 +--
>  9 files changed, 38 insertions(+), 65 deletions(-)
>
> --
> 2.17.0
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]